摘要: JavaScript1 var a = [1, 2, 3];2 3 alert(a instanceof Array); //返回true4 alert(a instanceof Object); //返回true5 6 alert(a.constructor == Array); //返回... 阅读全文
posted @ 2015-04-29 16:52 非额 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 由所示格式脚本进入严格模式严格模式和正常模式的区别主要如下:1、不支持八进制表示,如var n = 023;2、不支持with关键词3、无法删除变量(只有configurable设置为true的对象属性,才能被删除)1 "use strict";2 var x;3 delete ... 阅读全文
posted @ 2015-04-29 16:20 非额 阅读(179) 评论(0) 推荐(0) 编辑