编写JS碰到的错误合集

零点六一八 / 2023-07-19 / 原文

 

 

1、TypeError: Assignment to constant variable.

产生原因:const定义的常量被重复赋值;

解决方案:将const改为let