json.parse细节
发布日期:2021-05-07 00:04:26 浏览次数:8 分类:技术文章

本文共 278 字,大约阅读时间需要 1 分钟。

let a = '["a","b","c"]';// √let b = "['a','b','c']";// X// 对象let a1 = '{"name":"听风是风","age":"26"}';// √let b1 = "{'name':'听风是风','age':'26'}";// Xconsole.log(JSON.parse(a))// Arrayconsole.log(JSON.parse(a1))// Objectconsole.log(JSON.parse(b))// 报错console.log(JSON.parse(b1))// 报错
上一篇:Hypermesh Notes 2
下一篇:HyperMesh Notes

发表评论

最新留言

不错!
[***.144.177.141]2025年03月21日 08时37分38秒