我有3个单独的数组,我正在将它们全部加载到一个数组中.我可以使用.push()几个数组到一个吗?有可能吗?
var activeMembers=[]; // Active Users var noactiveMsg=[]; // Non-Active Users with a Pending Message var noactiveNomsg=[]; // Non-Active Users without a Pending Message var chatCenterMembers=[]; // Final Array of Chat Center Members chatCenterMembers.push(activeMembers).push(noactiveMsg).push(noactiveNomsg);
有没有办法链接.push()?
解决方法
chatCenterMembers.push(activeMembers,noactiveMsg,noactiveNomsg)