摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//shift:删除原数组第一项,并返回删除元素的值;如果数组为空则返回undefined var a = [1,2,3,4,5]; var b = a.shift(); //a:[2,3,4,5... 阅读全文
posted @ 2008-09-25 16:08 M' 阅读(6332) 评论(0) 推荐(0) 编辑