Examples of front-end classification controls based on asp.net core can also be seen as asp.net core mvc, api, service examples

Use reference site.js, a total of two initialization methods
var cls = new Classiciation("classiCreateEditDiv");
cls.Init(null);
var cls = new Classiciation("classiCreateEditDiv");
cls.Init(3);
The data interface is obtained through GetApiList() and can be modified through SetApiUrl()
Path: /api/data/add
Method: post
Parameter: {SuperiorId:0, Name:""}
Return: {status:true, newID:0}, {status:false, msg:""}
Path: /api/data/getdata
Method: get
Parameter: sid=0
Return: {status:true, depth:[{id:0, name:""}], data:[{id:0, name:"", remark:"", superiorid:0, subordinate:[]}]}, {status:false, msg:""}
Path: /api/data/edit
Method: get
Parameter: id=0
Return: {status:true|false, msg:""}
Path: /api/data/del
Method: get
Parameter: id=0
Return: {status:true|false, msg:""}
Path: /api/data/delconfirm
Method: get
Parameter: op=del|cancel&id=0
Return: Return: {status:true|false, msg:""}
Path: /api/data/getdepth
Method: get
Parameter: selid=0
Return: {status:true, depth:[{id:0, name:""}]}, , {status:false, msg:""}
