var emp = [‘abs‘,‘dsf‘,‘sdf‘,‘fd‘] var index = emp.indexOf(‘fd‘); if (index > -1) { emp.splice(index, 1); } alert(emp);
dialog组件
pages页面