低版本IE迭代

删除 API 功能 替代功能
attachEvent addEventListener
window.execScript eval
window.doScroll window.scrollLeftwindow.scrollTop
document.all document.getElementById
document.fileSizeimg.fileSize 使用 XMLHttpRequest 可提取源
script.onreadystatechange 和 script.readyState script.onload
document.selection window.getSelection
document.createStyleSheet document.createElement("style")
style.styleSheet style.sheet
window.createPopup 使用 div 或 iframezIndex 值很高)
二进制行为 变化;使用基于标准的等效,如 canvas、SVG 或 CSS3 动画
传统数据绑定 使用框架提供的数据绑定,如 WinJS

 

posted @ 2020-12-02 08:54  农村手艺人  阅读(78)  评论(0编辑  收藏  举报