jquery-1.8.3中的BUG typeError:elem.nodeName.toLowerCase is not a function
ie和firefox一直遇到這個問題
----------------------------------------------------------------------------------
| typeError:elem.nodeName.toLowerCase is not a function |
----------------------------------------------------------------------------------
遇到這樣的問題,讓我頭疼了2天。。。真是夜不能寐!
最後在goooooooooooogle的幫助下,找到了解決的答案
環境:jquery.1.8.3 + jquery.layout
jquery版本1.8.3的src下改為:
var match = jQuery.noData[ elem.nodeName.toLowerCase()];
change to
var match = jQuery.noData[ elem.nodeName.toString().toLowerCase() ];
jquery版本1.8.3的min下改為:
var t=e.nodeName&&v.noData[e.nodeName.toString().toLowerCase()];
這樣的問題即可解決
相關推薦
jquery-1.8.3中的BUG typeError:elem.nodeName.toLowerCase is not a function
ie和firefox一直遇到這個問題----------------------------------------------------------------------------------| typeError:elem.nodeName.toLowerCas
jquery-ui.min.js:5 Uncaught TypeError: b.nodeName.toLowerCase is not a function
1、錯誤描述2、錯誤原因 jquery UI通過按鈕彈出視窗,然後在視窗上的按鈕,點選後再次彈出視窗,出現報錯 錯誤原因是輸入框中id和name命名為nodeName <i
Vue表格複用,報錯"TypeError: _self.$scopedSlots.default is not a function"
場景:單頁面做可切換的多報表展示 如圖:每個報表戰術展示不同的資料項,需要隨select的切換,複用對應的table 這樣寫會報錯,並且切換後的table選項沒有達到預期效果 <el-main style="padding:10px;overflow-y:hidden"&g
常見報錯——Uncaught TypeError: document.getElementsByClassName(...).addEventListener is not a function
這是因為選擇器沒有正確選擇元素物件 document.getElementsByClassName(...)捕捉到的是該類名元素的陣列 正確的訪問方式應該是: document.getElementsByClassName(...)[0].addEventListener... 使用遍歷為每個class新增監
vue 中報錯 Error in mounted hook: "TypeError: handlers[i].call is not a function"
你會發現出現這個錯誤了,但是並沒有影響到專案的執行,(推下眼鏡),作為一個經常假裝認真的我,覺得還是解決掉的好,避免為以後留下隱患。 直接看這個錯誤你會發現,沒有任何的頭緒,那麼就從他給的報錯下的提示看看,可能有問題的元件有哪些;看完以後你會發現,這些都和生命週期鉤子函式有
Uncaught TypeError: str.toLowerCase is not a function
這個是在除錯的時候遇到的,他們的都沒問題,到我這就有問題了 問題在於,我在js程式碼裡面使用了資料int型別的資料 ,他們的都是清一色的字串,都沒的問題。 然後如下圖: 看到了,因為js時弱型別的,
百度地圖js報錯Uncaught TypeError: b.ga(...).nb is not a function
事件:百度地圖非同步批量建立marker,單擊單個marker彈出對話方塊報錯。 報錯: VM1771:1 Uncaught TypeError: b.ga(...).nb is not a function at HTMLSpanElement.eval (eval at zZ (getscri
Error in render: "TypeError: _self.$scopedSlots.default is not a function"
今天在做專案中遇到了如上圖這樣一個問題,專案是Vue+element-ui。原因是table中用了多個v-if,解決方案有兩個: 1、用v-show代替v-if(個人推薦用第二種); 2、在v-if條件語句中加key作為區分就不會報錯了。 <el-table
前端jQuery日曆控制元件報錯 $("#datepicker").datepicker is not a function
使用日曆控制元件時,前端產生錯誤: $("#datepicker").datepicker is not a function 問題原因 前端在同一個頁面,jQuery引入了兩次。 解決方法 方法一、 去掉一個jQuery引用 方法二、 在前端頁面加入如下js程式碼 如果有兩個js庫同時呼叫了jQuery,可
jquery-min.js /jquery-1.8.3.min.js引入後報錯
專案中加入jquery-min.js /jquery-1.8.3.min.js檔案後,就報紅叉叉,看著就討厭,原來專案就是用的這個檔案都OK的。這樣執行以下吧: 報錯的檔案--右鍵---myeclipse---exclude From Validation ,這樣執行以下報
jquery.min.js?v=2.1.4:4 Uncaught TypeError: (b.contentType || "").indexOf is not a function
前臺運行 gpo 前臺 add cati json log ont fun 前臺運行PUT時出現錯誤:jquery.min.js?v=2.1.4:4 Uncaught TypeError: (b.contentType || "").indexOf is not a fun
Uncaught TypeError: $(...)[1].prev is not a function問題
其實是:JQuery選擇器得到的元素物件,和JavaScript獲取元素物件 的問題 上面兩張圖是我對 input元素的獲取,使用的兩種方式,pic1用的是原生JS方式,pic2使用的jQuery。 從列印結果可以看出來,第一個返回了我一個節點,而第二返回給我了一個數組。
jQuery提交表單報錯 Uncaught TypeError: s[y] is not a function
使用jQuery提交表單的時候,頁面沒有反應,F12除錯發現點選提交按鈕,控制檯報錯 Uncaught TypeError: s[y] is not a function 問了百老師:發現可能是在form表單裡面 有一個input的id=“submit”,修改後,成功解決。
jQuery 1.9 .live() is not a function
jquery中的live()方法在jquery1.9及以上的版本中已被廢棄了,如果使用,會丟擲TypeError: $(...).live is not a function錯誤。解決方法: 之前的用法:.live(events, function) 新方法: .on(
js報錯 Uncaught TypeError: xxxx.each is not a function
each err typeerror span xxx list 報錯 pan 使用 在處理ajax返回的json數組時錯誤的使用了 list.each(function(){ }); 實際上當遍歷json數組是應該使用
TypeError: esri.layers.WMSLayer is not a constructor
對象 導致 con 功能 typeerror 存在 依賴 ima 方法 最近加載wms地圖後,總是報這個錯誤,因為錯誤,導致後續的代碼無法加載,導致無法功能使用。 原因是,由於方法公用,有的新功能在使用時,引用依賴包時,未引用完整,導致加載此處加載wms圖層的時候,
Uncaught TypeError: o.block is not a function
erro TP 9.png .com In type ima alt typeerror 未捕獲TypeError:o。block不是一個函數 js少引,或者路徑錯誤Uncaught TypeError: o.block is not a function
【vue開發問題-解決方法】(四)vue Element UI使用中.$scopedSlots.default is not a function 報錯
判斷 元素 技術分享 error: class 解決 nbsp AR peer 當使用elementUI中v-if來判斷顯示元素時,會報錯。 vue.js:600 [Vue warn]: Error in render: "TypeError: l.$scopedSl
Uncaught TypeError: window.showModalDialog is not a function 谷歌
sop fun replace 原創文章 aso csdn 版權 使用 parent //新版本谷歌沒有window.showModalDialog,創建一個window.openif(window.showModalDialog == undefined){ windo
window.showModalDialog 在谷歌Uncaught TypeError: undefined is not a function
oda help fun use 版權 index typeerror undefine modal if(navigator.userAgent.indexOf("Chrome") >0 ){var winOption = "height="+height+",wi