可以扩展jQuery,以便使用上述语法吗?
我不知道如何原型化$()返回的值,以便可以调用$()。$()
谢谢。
最佳答案
您可以使用find()
例如:$('.superset').find('.within');
或更简单的$('.superset .within');
关于jquery - jQuery:我可以用$('。superset')。$('。within')代替$('。within',$('。superset'))吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/358230/