Implementation ideas:
1. The nodes in ztree use a json Array as the data source, so the json string is directly manipulated and then converted into a json object array.
2. Then re-initialize the ztree object with the newly formed json array object.
html代码: