需要合作伙伴联系我,VX(绿泡泡): w6668263      email:ye583025823@126.com

2013年7月13日

document.getElementsByName和document.getElementById用法

摘要: 本文的问题在国外的一个网站得到了答案http://stackoverflow.com/questions/11235409/no-getelementbyid-for-body document.body.getElementsByTagName() document.body.getElementsByClassName()document.getElementByIddocument.getElementsByName解释如下:你可以有多个元素相同的类名所以缩小搜索开始与一个特定的节点有意义。它没有意义,因为它与id应该是唯一的。你只能有一个id... 阅读全文

posted @ 2013-07-13 23:40 龙行龘龘9527 阅读(2286) 评论(0) 推荐(0) 编辑

导航