if(type==4){ }//这里的type==4的有多个,怎么将它存储到数组里面
var arr = []; if(nodes[root].type==4){//nodes[root].type是一个类型 arr.push(root); } alert(arr); //自己输出试试
if(nodes[root].type==4){//nodes[root].type是一个类型 如果这个类型==4就将root存到数组里面 }
87,990
社区成员
224,684
社区内容
加载中
试试用AI创作助手写篇文章吧