zoukankan
html css js c++ java
IE中关于getAttribute的问题。
最近在代码中使用了element.getAttribute方法,但出现了奇怪的问题:
1. 若attribute的名称空间不在当前html的名称空间。
2. 若Element为table,body,html(其他没有测试)。
会出现“参数错误”的异常。查阅相关文档并没有相关的解释,而用作div中则没有任何问题。
解决办法:
采用getAttributeNode方法,到现在还没有发现什么异常,哪位高人给指点一下?
查看全文
相关阅读:
Reverse Words in a String II -- LeetCode
计算两点间的距离,hdu-2001
A + B Problem,hdu-1000
ASCII码排序,hdu-2000
定义#define
break语句的使用
判断一个数是否为素数
用下面公式求π:
Sum Problem-hdu-1001
正三角形的外接圆面积,nyoj-274
原文地址:https://www.cnblogs.com/headchen/p/714889.html
最新文章
积累
IE6 bug总结
移动端笔记总结
数组、Math、JOSN总结
HTML5微信播放全屏问题的解决方法
JS学习笔记
js设置元素float的问题
H5新特性:
script标签中defer和async属性的区别
HTTP状态码
热门文章
flex常用属性
Find intersection of two sorted arrays
Rotate Image -- LeetCode
Subsets -- LeetCode
Valid Parentheses -- LeetCode
Group Anagrams -- LeetCode
Find the Duplicate Number -- LeetCode
Merge K Sorted Lists -- LeetCode
Validate Binary Search Tree -- LeetCode
Binary Tree Level Order Traversal -- LeetCode
Copyright © 2011-2022 走看看