All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
document.getElementById的一些细节_JavaScript技术_编程技术

Writer: delv Article type: Programming skills(编程技巧) Time: 2013/12/31 6:34:12 Browse times: 353 Comment times: 0

document.getElementById的一些细节_JavaScript技术_编程技术


Head photo

Go homepage
Upload pictures
Write articles

document.getElementById的一些细节_JavaScript技术_编程技术-你的首页-uuhomepage.com







① document.getElementById 有时会抓name放过了id ,据说是IE的一个BUG;
http://community.csdn.net/Expert/topic/4223/4223888.xml?temp=.1947443

页面中有











② javascript中的getElementbyId使用
网页中的元素必须有id属性,才能通过这个方法得到,比如


③获取html标记主要有两种方法,一种是通过ID值,一种是通过name属性
name属性主要用于form表单内的input标记










There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.