Maison >interface Web >js tutoriel >JS(JQuery)操作Array的相关方法介绍_javascript技巧
1:split 函数将字符串按某个字符分割,将分割后的结果存入字符串数组中
function SpliceItem(name) {
for (var i = 0; i if (totalUsers[i].UserName == name) {
totalUsers.splice(i, 1)
}
}
}