Angular Array集合的操作
类似于Java的Stream流的操作。
studentList为List对象
let a = studentList.map(x => x.name);//获取List对象的某一列的值 console.log(a.join(','));//打印出来,用逗号分隔
类似于Java的Stream流的操作。
studentList为List对象
let a = studentList.map(x => x.name);//获取List对象的某一列的值 console.log(a.join(','));//打印出来,用逗号分隔