javascript使用误区_javascript对象最后不能添加逗号-CSDN博客1.在头部声明变量虽然 JavaScript 有变量提升功能:变量可以先使用后申明(初始化不行),但是为了避免错误发生最好还是在在头部声明变量。2.使用严格模式,减少代码错误https://www.runoob.com/js/js-strict.html3.使用误区3.1 赋值运算符...... admin2023-10-13