在ie中,obj.setAttribute("")obj.setAttribute("a","b")<==>obj.a="b"; obj.getAttribute("a")<==>obj.a;
而在firefox 中,obj.setAttribute("")obj.setAttribute("a","b")<≠>obj.a="b"; obj.getAttribute("a")<≠>obj.a;
示例:
運行後的結果爲:
firefox 关于非标准属性值的读取与ie的区别
最新推荐文章于 2020-11-24 13:00:00 发布