What you want is the splice function: arr.splice(index, 0, item); will insert item into arr at the specified index .
確定! 回上一頁