对常量变量 one 的赋值将 null 设置为 dueDate
Assignment to constant variable one set null to dueDate
我在 jquery 升级到 3.6 版本后出现以下错误
错误:-
Uncaught TypeError: Assignment to constant variable.
在行中:-
var Item = function () {
Name = null
dueDate = null // here in the console showing the error
ns = null
};
知道如何解决这个问题
看起来至少有一个变量是用 const 声明的。
姓名、截止日期或 ns。
你需要用 let 定义它们,否则你不应该 re-assign 它们。
我在 jquery 升级到 3.6 版本后出现以下错误
错误:-
Uncaught TypeError: Assignment to constant variable.
在行中:-
var Item = function () {
Name = null
dueDate = null // here in the console showing the error
ns = null
};
知道如何解决这个问题
看起来至少有一个变量是用 const 声明的。 姓名、截止日期或 ns。 你需要用 let 定义它们,否则你不应该 re-assign 它们。