JAVASCRIPT瀏覽器兼容問題

  1. 時間轉換:firefox時間轉換返回Nan問題解決方法strTime = strTime.replace("-", "/").replace("-", "/");  //用於兼容火狐
  2. bind參數:firefox只支持一個參數
  3. 阻止事件傳遞:firefox不支持event.stopPropagation(),必須傳event參數function(e){e.stopPropagation();}
  4. innerText屬性:firefoxV43及以前版本不支持innerText屬性,V45支持,替換爲innerHTML
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章