js的赋值是其实是赋的引用

赋引用

1 var tmpDeathInfoList = this.deathInfoList;
2 tmpDeathInfoList.splice(deleteIndex,deleteCount);

tmpDeathInfoList 处理其实是对this.deathInfoList的处理。

原文地址:https://www.cnblogs.com/YangBinChina/p/14075752.html