02 2018 档案

摘要:一、Json 1Json(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式。 2.Json语法规则 在 JS 语言中,一切都是对象。因此,任何支持的类型都可以通过 JSON 来表示,例如字符串、数字、对象、数组等。但是对象和数组是比较特殊且常用的两 阅读全文
posted @ 2018-02-12 16:34 hey-李高冷 阅读(641) 评论(0) 推荐(0)
摘要:var str = '百度搜索-WWW.baidu.com'; str.charAt(1); // '度'str.charCodeAt(1); // 24230String.fromCharCode(24230, 25628); // '百度' str.indexOf('b', 3); // 4 i 阅读全文
posted @ 2018-02-11 12:36 hey-李高冷 阅读(123) 评论(0) 推荐(0)
摘要:1.当前系统日期: new Date(); getFullYear(); 年 getMonth(); 月(getMonth()+1 为当前月) getDate(); 日 getHours(); 小时 getMinutes(); 分钟 getSeconds(); 秒 2.倒计时 时间转换公式: 天 M 阅读全文
posted @ 2018-02-11 12:15 hey-李高冷 阅读(191) 评论(0) 推荐(0)
摘要:一、return返回值 1)函数+括号 2)所有函数默认返回值:未定义 3)return后任何代码都不执行 二、定时器 1.setInterval 1)是一个实现定时调用的函数 2)setInterval(函数,毫秒) 重复执行 3)clearInerval( ) 清除 2.setTimeout 1 阅读全文
posted @ 2018-02-11 11:36 hey-李高冷 阅读(306) 评论(0) 推荐(0)