How can I combine two arrays into one array in javascript?
This question already has an answer here:
使用Array.prototype.concat
方法:
var result = hora.concat(self.aEstados.estados);
使用Array.prototype.concat
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat)
var combined = hora.concat( self.aEstados.estados );
console.info( combined );
链接地址: http://www.djcxy.com/p/17954.html