es5中没有直接的方法用来进行数组的复制,但是我们可以通过Array对象的一些方法来实现简单的数组浅复制
function arrayClone(targetArr){return targetArr.slice(); }