递归

setPara(e) { for(var i in e){ if(e[i].level == 1) { this.checkedOptions.push(e[i].permissionId); } if(e[i].children){ this.setPara(e[i].children); } } }

Hold The Faith . Forever !
We can find a way .
Someday .
A path to a new world
And maybe
Maybe its just the begnning after all

author - Foraging Pawn

你可能感兴趣的:(递归)