一. indexOf()二. 正则 一. indexOf()var arr = [‘1’,’2’];delete(‘1’); function delete(i){ var index = arr.indexOf(i); arr.splice(index, 1) } 二. 正则let epm3 = “ fd, xd, df”emp3.replace(/fd\,/g,””).replace(/\,fd/g,””)