专注前端素材!
源代码:
点击运行
素材8网(study.sucai8.cn)
单击按钮在数组中插入元素。
点我
注意:
unshift()方法不能用于 Internet Explorer 8 之前的版本,插入的值将被返回成
undefined
。
运行结果