gpt4 book ai didi

jQuery:我可以用 $ ('.superset' ).$ ('.within' ) 代替 $ ('.within' , $ ('.superset' )) 吗?

转载 作者:行者123 更新时间:2023-12-01 07:36:53 27 4
gpt4 key购买 nike

可以扩展 jQuery 以便我可以使用上述语法吗?

我不知道如何对 $() 返回的内容进行原型(prototype)设计,以便我可以调用 $().$()

谢谢。

最佳答案

您可以使用find()

例如:$('.superset').find('.within');

或更简单,$('.superset .within');

关于jQuery:我可以用 $ ('.superset' ).$ ('.within' ) 代替 $ ('.within' , $ ('.superset' )) 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/358230/

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