javaScript递归
let yesSelectArr = type === 'leaderOrg' ? [4, 6] : [5]
data = this.getOrgList(' 要递归的数据', yesSelectArr)
//递归
getOrgList(array, typeArr) {
const recursion = function(arr) {
arr.forEach((item, index) => {
if (arr[index].typ...
原创
2022-02-11 14:57:45 ·
48 阅读 ·
0 评论