日期:2014-05-18  浏览次数:20654 次

ie与firefox支持的脚本比较
今天做了一个百度的笔试题目,有一个题为:比较IE与firefox支持的脚本有何不同??至少要给出三点,请各位指教!!!

------解决方案--------------------
ajax--firefox不能对innerText支持 IE支持

禁止选取网页内容:
在IE中一般用js:obj.onselectstart=function(){return false;}
而firefox用CSS:-moz-user-select:none

捕获事件:
IE:obj.setCapture() 、obj.releaseCapture()
Firefox: document.addEventListener( "mousemove ",mousemovefunction,true);
    document.removeEventListener( "mousemove ",mousemovefunction,true);