gpt4 book ai didi

jquery - 子选择器已弃用

转载 作者:行者123 更新时间:2023-12-03 22:48:13 24 4
gpt4 key购买 nike

Possible Duplicate:
What is the new proper way to use a child selector with a context node in jQuery?

来自 jQuery 文档:

Note: The $("> elem", context) selector will be deprecated in a future release. Its usage is thus discouraged in lieu of using alternative selectors.

http://api.jquery.com/child-selector/

什么是 alternative selector为此?

最佳答案

$(context).children('elem')

同时 $("> elem", context) 已弃用,但 $(context+">elem")$("parent>child") 不是

关于jquery - 子选择器已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7833558/

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