摘要:
splice()可向数组删除并加入新的元素。语法arrayObject.splice(index,howmany,element1,.....,elementX)<script type="text/javascript">var arr = new Array(5)arr[0] = "Jani"arr[1] = "Hege"arr[2] = "Stale"arr[3] = "Kai Jim"arr[4] = "Borge"document.write(arr + 阅读全文