let user = [
{
id: 1,
name: "小A",
},
{
id: 2,
name: "小B",
},
{
id: 3,
name: "小C",
},
{
id: 4,
name: "小D",
},
];
["小A", "小B", "小C", "小D"]
let name = [];
for (let i = 0; i < user.length; i++) {
name.push(user[i].name);
}
let name = [];
user.forEach((item) => {
name.push(item.name);
});
let name = user.map((item) => {
return item.name;
});
let name = Array.from(user, ({ name }) => name);
此页面不支持夜间模式!
已进入夜间模式!
已进入普通模式!
搜索框不允许为空
签到成功!经验+5!芋圆币+2!
签到失败!今日已签到!
需要登录社区账号才可以进入!