摘要: 1、Date.now() //Date.now() is in ECMAScript 5 //Prior to that, use +new Date() //获取当前时间 var now = (typeof Date.now == "function" ... 阅读全文
posted @ 2015-10-27 14:47 史洲宇 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Boolean对象/* 创建 Boolean 对象的语法: new Boolean(value); //构造函数 Boolean(value); //转换函数 参数 value 由布尔对象存放... 阅读全文
posted @ 2015-10-27 14:34 史洲宇 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1、数组常用方法var colors = ["red", "blue", "green"]; //creates an array with three strings alert(colors.toString()); //red,blue,green al... 阅读全文
posted @ 2015-10-27 14:28 史洲宇 阅读(246) 评论(0) 推荐(0) 编辑