document.getElementById(index).value = Node.getAttribute(attr);如果attr属性不存在,getAttribute(attr);返回值是多少??
解决方案 »
- 请问在firefox和IE下使用js可以写xml文件么
- 下拉菜单的问题
- Ext.data.Record的create方法里的元素在api的什么地方可以找得到
- jquery中向ajax问题
- 用正则表达式,怎么把input type="file"中的路径中的"\"转换成"/"?
- 帮忙确认onchange和onpropertychange的适用对象和兼容性
- 请懂的人帮我把它转成JS,我不会转
- 请教一个替换问题!
- 如何利用JavaScript使得文本框中特定文本有下划线?
- 如何利用JAVASCRIPT脚本求得点X到点Y之间的距离(X,Y之间的坐标已经知道)
- 求解啊!!!!啊啊!谢谢
- 这种JS叫什么写法,帮我分析下
Variant. Returns a string, number, or Boolean, defined by sAttrName. If an explicit attribute doesn't exist, an empty string is returned. If a custom attribute doesn't exist, null is returned.要么是空字符串,要么是 null,IsNullOrEmpty!Web 开发常用手册DHTML 参考手册
http://download.csdn.net/source/308913JScript 语言参考
http://download.csdn.net/source/308916CCS 样式表中文手册
http://download.csdn.net/source/304124
<div id="d" class=""></div>
<script language="javascript" type="text/javascript">
var div = document.getElementById("d")
div.innerHTML = "<li>自定义属性mxh = " + div.getAttribute("mxh")
div.innerHTML += "<li>id 属性 = " + div.getAttribute("id")
div.innerHTML += "<li>style 属性= " + div.getAttribute("style")
div.innerHTML += "<li>class 属性 = " + div.getAttribute("class")
</script>