后台传来一个数据列表。列表的数据排序可能比较乱。rootparentset的ID为0,但是也可以随意删除其中一个,这样这个数据的parentset的ID根本就追不上0了。暂时就这么写吧,说不定还有更好的办法呢!exportconstcreate=function(config){/***清除无法追溯到父集ID为0的数据*@paramlist*/this.clearNopid=function(list){constids=[];常数arr=[];for(leti=0;i

后台传来一个数据列表。列表的数据排序可能比较乱。rootparentset的ID为0,但是也可以随意删除其中一个,这样这个数据的parentset的ID根本就追不上0了。暂时就这么写吧,说不定还有更好的办法呢!exportconstcreate=function(config){/***清除无法追溯到父集ID为0的数据*@paramlist*/this.clearNopid=function(list){constids=[];常数arr=[];for(leti=0;i