SOURCE

        let users = ['1001', '1002', '1002', '1003', '1004', '1005', '1006'];
        let menus = [
            {
                '1001': ['1', '2', '3', '4', '5']
            },
            {
                '1002': ['1002', '2', '3', '4', '5']
            },
            {
                '1003': ['1003', '2', '3', '4', '5']
            },
            {
                '1004': ['1004', '2', '3', '4', '5']
            },
            {
                '1005': ['1005', '2', '3', '4', '5']
            },
        ];

function getNum(data){
  return new Promise(function(resolve,reject){
    if(data){
      resolve(value)
    }else{
      reject(value)
    }
  })
}
let a = getNum(users);
let b = getNum(menus);
a.forEach(function(item,index){
  for(item in b){
		console.log('a:'+item)
    console.log('b:'+b[item])
  }
})

console 命令行工具 X clear

                    
>
console