JS 数组赋值,引用传递 问题 链接:https://blog.csdn.net/qq_30715329/article/details/79817685 被赋数组 修改了也会改变 源数组。 解决方法:用slice()等等方法创建一个新数组赋值过去。