let itemDeleted = [...item]; itemDeleted .splice(n, 1); item = itemDeleted
唯一需要注意的,要转一道手,不然新的数组刚好是删掉的那些元素。