如何从Html列表创建Json [英] How to create Json from Html List
本文介绍了如何从Html列表创建Json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建这种类型的
json
I Want to create this type of
json
var data = [{"id": "1", "name": "name_1", "parent_id": "0", "depth": "0"},
{"id": "2", "name": "name_2", "parent_id": "0", "depth": "0"},
{"id": "3", "name": "name_3", "parent_id": "1", "depth": "1"},
{"id": "4", "name": "name_4", "parent_id": "3", "depth": "2"}];
$ b这种类型的HTML列表$ b
-
from this type of HTML List
-
A
-
-
B
-
-
D
-
-
E
-
-
F
1 -
C -
推荐答案
我想要逆向流程它的价值
请再读一遍I want Reverse Process of it
Please read it again
这篇关于如何从Html列表创建Json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-
-
-
-
-
查看全文