嗯,多谢。
可能跟jQuery的版本有关,但应该跟attr没关系,因为"Below for test only..."那行下面那部分测试可以看出用attr提取出来的内容是可以显示出来的。
我刚才在公司的Windows中的IE/Chrome上试了下,发现代码是工作的,但jquery版本比家里的MacBook里的要低。等回家后再试试看。
【 在 ottffsse 的大作中提到: 】
:
http://api.jquery.com/attr/: As of jQuery 1.6, the .attr() method returns undefined for attributes that have not been set.
: so your code will go wrong. change your code as follows:
: ...................
--
FROM 192.55.54.*