jquery 升級到 3.6 版本后出現以下錯誤
錯誤 :-
未捕獲的 TypeError:分配給常量變數。
在行中: -
var Item = function () {
Name = null
dueDate = null // here in the console showing the error
ns = null
};
知道如何解決這個問題
uj5u.com熱心網友回復:
看起來至少有一個用 const 宣告的變數。姓名、到期日期或 ns。您需要使用 let 定義它們,否則不應重新分配它們。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/472710.html
標籤:javascript jQuery 网
