js中const,var,let区别
摘要:1.const定义的变量不可以修改,而且必须初始化。 1 const b = 2;//正确 2 // const b;//错误,必须初始化 3 console.log('函数外const定义b:' + b);//有输出值 4 // b = 5; 5 // console.log('函数外修改cons
阅读全文
posted @ 2019-04-29 14:37
posted @ 2019-04-29 14:37
posted @ 2019-04-12 11:30
posted @ 2019-04-11 16:24
posted @ 2019-04-02 16:05
posted @ 2019-04-02 15:23