DOM對象轉jQuery對象,報錯not a function

DOM對象轉jQuery對象,報錯not a function git報錯截圖 each遍歷,item直接引用報錯,顯示not a function。 vscode代碼 獲取到的數組是jQuery僞數組,each遍歷後得到的是DOM對象,不能直接引用,需要轉爲jQuery對象再引用。 修改如下:
相關文章
相關標籤/搜索