2016年5月4日
摘要: 严格模式是ES5中添加的一种特殊的执行模式,提供错误检测,增强了安全性 语法: "use strict" 全局使用strict 函数内使用 1: 全局变量 在strict模式下,不可以给一个为声明的变量赋值 正常模式: a = 1; console.log(a) 1 严格模式: "use stric 阅读全文
posted @ 2016-05-04 22:52 借个火点烟 阅读(1040) 评论(0) 推荐(0) 编辑