- 博客(3)
- 收藏
- 关注
原创 js的Date 和 Math对象
Date// Date 对象// 创建// 使用Date()函数console.log(Date())console.log(typeof Date()) // string// 使用对象console.log(new Date())console.log(typeof new Date()) // object// 使用字符串console.log(new Date('...
2019-04-27 11:23:32
159
原创 Js字符串常用方法
aaa目录简介字符串的== , ===str.charAt(index)str.toLowerCase()/toUpperCase()str.indexOf(str, startIndex)/lastIndexOf(str, startIndex)str.replace(oldStr, newStr)str.substring(startIndex, endIndex)str.substr(sta...
2019-04-27 11:20:26
202
原创 Js数组常用方法
Js数组常用方法目录数组的遍历数组点长度,添加和删除元素array.join(str)array.reverse()array.slice(startIndex, endIndex)目录数组的遍历// 数组的遍历var a =1// for infor (let i in [1, 2, 3, 4]) { console.log(i)}// forEach[1, 2, 3...
2019-04-27 10:39:13
294
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人