标签:code bsp 数组 span color div col ice pre
var a = [1, 2, 3, 4] var b = a.slice(0) b[0] = 2 // a = [1, 2, 3, 4] // b = [2, 2, 3, 4]
slice深拷贝数组
原文地址:https://www.cnblogs.com/jack-liu6/p/9313165.html