提交 1e56c1cc 编写于 作者: 杜庆泉's avatar 杜庆泉

Update json.md

上级 38b90c02
......@@ -4,7 +4,11 @@
### parse
JSON.parse() 方法用来解析 JSON 字符串,构造由字符串描述的 UTSJSONObject。
JSON.parse() 方法用来解析 JSON 字符串,构造由字符串描述的对象。可能返回值是: UTSJSONObject / UTSArray/ number,boolean 等基本数据类型
> 特别说明:
> HBuilderX3.9.0统一为以上规范,在HBuilderX3.9.0之前版本 返回值只可能是 UTSJSONObject, 基本数据类型会转换失败
```ts
const json = `{"result":true, "count":42}`;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册