firefox 关于非标准属性值的读取与ie的区别

在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;
示例:

運行後的結果爲:

posted on 2010-04-22 20:19  liangGe_sky  阅读(150)  评论(0编辑  收藏  举报