会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
二两余晖
博客园
首页
新随笔
联系
订阅
管理
2021年11月26日
字符串的方法(共16项)
摘要: 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)
编辑