mergeTo = mergeTo.concat(mergeFrom);
mergeTo; // is: [4,6,7,9]
mergeTo; // is: [4,6,7,9]
or @H_404_1@
第二种 @H_404_1@
Array.prototype.push.apply(mergeTo,mergeFrom);
mergeTo; // is: [4,9]
合并多个数组merge array: @H_404_1@
if(termNo != null && termNo.indexOf("9966") == 0){
var newMustEnableList = ['mobile','psp','jtk','credit','train','bank','alipay','lottery','movie','littleTransfer','trafficFines','concert','mall','airplane','hotel','recycle'];
_SPECIAL_MUST_ENABLE_LIST = _SPECIAL_MUST_ENABLE_LIST.concat(newMustEnableList);
}
var newMustEnableList = ['mobile','psp','jtk','credit','train','bank','alipay','lottery','movie','littleTransfer','trafficFines','concert','mall','airplane','hotel','recycle'];
_SPECIAL_MUST_ENABLE_LIST = _SPECIAL_MUST_ENABLE_LIST.concat(newMustEnableList);
}