Ie浏览器下,有时候获取到的window.location.origin为undefined,需要兼容 ...
今天再做项目演示的时候,用的是ie浏览器报错404,项目都运行好久了,第一次用ie就这样了悲剧,贴下解决方法吧 function getContextPath() { var pathName = document.location.pathname; var index ...
window.location.href 兼容性问题 (ie 下设置失效) window.location.href = "../index.html" (ie 浏览器失效) window.open('../index.html') 都生效(亲测有效) ...
引入 <script src = "https://cdn.polyfill.io/v2/polyfill.min.js"></script> 或 <script t ...
,placeholder属性是无效的,非现代浏览器( 例如 IE6-IE9 )是不支持placeholder属性的 ...