James's BLOG
jQuery 取得元素名稱
jQuery
1.6以前使用
.attr('tagName')取得名稱,
1.6以後使用.prop('tagName')取得名稱.
參考
jQuery Attr:
http://api.jquery.com/attr/
jQuery Prop:
http://api.jquery.com/prop/
‹
›
首頁
查看網路版