日期:2014-05-16  浏览次数:20425 次

关于ie6的apply
测试ie6时出错, 发现 div的setAttribute不支持apply
查看 typeof div1.setAttribute 发现不是function而是object
查看 typeof div1.appendChild 发现不是function而是object
而 typeof Math.abs 却是 function
何解?

------解决方案--------------------
host enviroment里方法的类型由host enviroment决定,换问话说就是由浏览器决定。
------解决方案--------------------
函数既是function也是对象
另外:楼主神马情况要setAttribute.apply ?