json. 置属性 (“a1”, “604800”, 真) json. 置属性 (“a2”, “604800”, ) json. 置属性 (“a3”, “hello”, ) json. 置属性 (“b”, “{}”, 真) json. 置属性 (“b.c”, “{}”, 真) json. 置属性 (“b.c.d1”, “123”, 真)json. 置属性 (“b.c.d2”, “123”, ) json. 置属性 (“b.c.d3”, “hello”, ) json. 置属性 (“e”, “{}”, 真) json. 置属性 (“e.c1”, “123”, 真) json. 置属性 (“e.c2”, “123”, ) json. 置属性 (“e.c2”, “hello”, ) 输出调试文本 (json. 取数据文本 ()) [JavaScript] 纯文本查看 复制代码 {
"a1": 604800,
"a2": "604800",
"a3": "hello",
"b": {
"c": {
"d1": 123,
"d2": "123",
"d3": "hello"
}
},
"e": {
"c1": 123,
"c2": "hello"
}
}
另一个开源帖子:
[Mark] json添加对象数组
https://bbs.125.la/forum.php?mod=viewthread&tid=14785686&extra=
|