摘要: 结论:const定义的基本类型不能改变,但是定义的对象是可以通过修改对象属性等方法来改变的。 例子: 1. const aa=trueaa=falseconsole.log(aa)VM1089:2 Uncaught TypeError: Assignment to constant variable 阅读全文
posted @ 2019-05-26 12:55 begin256 阅读(9161) 评论(1) 推荐(0) 编辑