比如<comA title='comA' ttt='caca'> <nodea title='nodea'> <nodeaa title='nodeaa'></nodeaa> </nodea> <nodeb title='nodeb'></nodeb></comA>生成{ "children": [ { "tagName": "NODEA", "title": "nodea" "children":[{ "tagName": "NODEAA", "title": "nodeaa" }] }, { "tagName": "NODEAA", "title": "nodeaa" } ], "tagName": "COMA", "title": "comA", "ttt": "caca"}
添加回答
举报
0/150
提交
取消