会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
猫一只咪
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2020年4月1日
JS中常用的方法-Json.xxx/JS的三种判断一个值的类型的办法
摘要: JSON. parse() 字符串转对象. const str = '{"name": "phoebe", "age": 20}';const obj = JSON.parse(str);// {name: "phoebe", age: 20}(object类型) JSON.stringify()
阅读全文
posted @ 2020-04-01 12:03 猫一只咪
阅读(670)
评论(0)
推荐(0)
编辑
JS中常用的方法-string
摘要: String charAt() 用于返回指定位置(下标)的字符。 const str = 'helio guys';console.log(str.charAt(3))// i charCodeAt() 用于返回指定位置的字符的Unicode编码。 const str = 'helio guys';
阅读全文
posted @ 2020-04-01 11:23 猫一只咪
阅读(180)
评论(0)
推荐(0)
编辑