📜  从数组 vuejs 中删除项目 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:13.255000             🧑  作者: Mango

代码示例1
let currentTeamUsers = this.team.user_ids;
let userToRemove = this.selectedUsersMulTeams.map(selectedUsersMulTeams => selectedUsersMulTeams.user_id);
let userIndex = currentTeamUsers.indexOf(userToRemove)
currentTeamUsers.splice(userIndex, 1);