赞
踩
//【递归】说明:let recursion_方法名 = (arr) => { (arr || []).forEach(v => { v.id = ++this.id;//生成自然数id recursion_方法名(v.children); });}recursion_方法名(数组或对象);