想象一下,我在
JavaScript中有两个数组:
var geoff = ['one','two']; var degeoff = ['three','four'];
如何合并这两个数组,导致这样的数组?
var geoffdegeoff = ['one','two','three','four'];
解决方法
var geoffdegeoff = geoff.concat(degeoff);