摘要:
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-李高冷
阅读(125)
评论(0)
推荐(0)
摘要:
1.当前系统日期: new Date(); getFullYear(); 年 getMonth(); 月(getMonth()+1 为当前月) getDate(); 日 getHours(); 小时 getMinutes(); 分钟 getSeconds(); 秒 2.倒计时 时间转换公式: 天 M 阅读全文
posted @ 2018-02-11 12:15
hey-李高冷
阅读(192)
评论(0)
推荐(0)
摘要:
一、return返回值 1)函数+括号 2)所有函数默认返回值:未定义 3)return后任何代码都不执行 二、定时器 1.setInterval 1)是一个实现定时调用的函数 2)setInterval(函数,毫秒) 重复执行 3)clearInerval( ) 清除 2.setTimeout 1 阅读全文
posted @ 2018-02-11 11:36
hey-李高冷
阅读(310)
评论(0)
推荐(0)

浙公网安备 33010602011771号