jQuery有关比较jQuery引用的查询 [英] jQuery Query about comparing jQuery references

查看:72
本文介绍了jQuery有关比较jQuery引用的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎没有什么可以测试两个jQuery引用是否是

相同的元素。


给出: -


...< div id =" 1">< / div ....


然后: -

alert($("#1")== $("#1"))


返回false。


jQuery'的eq似乎也没有帮助。


jQuery'的网站似乎超载而且它是断断续续的,所以我不会

现在从那里寻求帮助!


Aaron

There does not seem too be anyway to test if two jQuery references are the
same element.

Given :-

... <div id="1"></div ....

Then :-

alert( $("#1") == $("#1"))

return false.

jQuery''s eq does not seem to help either.

jQuery''s site seems overloaded and it being intermittent, so I would not
look for help from there right now !

Aaron

推荐答案

("#1") ==
("#1") ==


("#1"))


返回false。


jQuery'这样的eq似乎也没有帮助。


jQuery'的网站似乎超载而且它是断断续续的,所以我不会

寻求帮助来自现在就在那里!


Aaron
("#1"))

return false.

jQuery''s eq does not seem to help either.

jQuery''s site seems overloaded and it being intermittent, so I would not
look for help from there right now !

Aaron


7月25日下午3:41,Aaron Gray写道:
On Jul 25, 3:41 pm, Aaron Gray wrote:

无论如何,似乎没有测试两个jQuery

引用是否是相同的元素。
<给定: -


...< div id =" 1">< / div ....


然后: -


alert(
There does not seem too be anyway to test if two jQuery
references are the same element.

Given :-

... <div id="1"></div ....

Then :-

alert(


这篇关于jQuery有关比较jQuery引用的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆