- 博客(1)
- 收藏
- 关注
原创 字符串内置对象方法与Math内置对象方法的简介
字符串内置方法var str1 = 'xiaoming';console.log(str1.length);//字符串的长度console.log(str1.charAt(0));//返回索引0的那个字符console.log(str1.charCodeAt(0));//返回索引0的那个字符的字符编码console.log(str1.indexOf('i'));//返回该字符的索引位置console.log(str1.lastIndexOf('i'));//从后往前返回字符的索引位置con
2021-09-18 10:14:39 100
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人