Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请问jQuery中的函数是什么.is,.filter它们有什么区别?
.is
.filter
.is()如果您调用它的至少一个元素与选择器匹配,则返回 true。
.is()
.filter()仅返回您调用它的集合中与选择器匹配的那些元素
.filter()
正确的定义和示例可以在以下位置找到: .is( )和.filter()
希望有帮助..?