gpt4 book ai didi

javascript - jQuery 选择器上下文

转载 作者:可可西里 更新时间:2023-11-01 01:55:14 26 4
gpt4 key购买 nike

下面的代码中,,this是什么意思?

var popup = $(popup<b>, this</b>).css('opacity', 0);

最佳答案

选择器中的第二个参数是搜索上下文。 $(a,b)$(b).find(a) 相同。

可以在 jQuery(), section "jQuery( selector, [ context ] )" 找到更多信息。 .

关于javascript - jQuery 选择器上下文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/665057/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com