2021年11月26日
摘要: 1、length 查询字符串的长度 var str = 'hello world' console.log(str.length) // 结果为: 11 2、indexOf() 查询字符串中指定文本首次出现时的索引 var str = 'hello world' console.log(str.in 阅读全文
posted @ 2021-11-26 13:39 二两余晖 阅读(220) 评论(0) 推荐(0) 编辑