var a=[1,2,3];

var b=[5,6,7];

b=b.concat(a);

console.log(b);

输出结果:[1,2,3,5,6,7]

 

iE不支持使用assign可以使用var obj = jQuery.extend(formconfig2,data);来代替

或者可以添加以下代码

if (typeof Object.assign != 'function') {
Object.assign = function(target) {
'use strict';
if (target == null) {
throw new TypeError('Cannot convert undefined or null to object');
}

target = Object(target);
for (var index = 1; index < arguments.length; index++) {
var source = arguments[index];
if (source != null) {
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
}
return target;
};
}
var obj = Object.assign(formconfig2,data);