摘要:
1. 把对象作为参数传入functionvar a = [1,2,3,4];var b = [];function arraycopy(/* array */ from, /* index */ from_start,/* array */ to, /* index */ to_start,/* integer */ length) { var j = to_start - 1; for(var i = from_start - 1; i < length; i++) { to[j] = from[i]; j += 1; }}function copyArray(arrObj... 阅读全文