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屬性的 ...