Append an array to another array in JavaScript [duplicate]
问题 This question already has answers here : Closed 7 years ago . This question is an exact duplicate of: How to append an array to an existing JavaScript Array? How do you append an array to another array in JavaScript? Other ways that a person might word this question: Add an array to another Concat / Concatenate arrays Extend an array with another array Put the contents of one array into another array I spent some time looking for the answer to this question. Sometimes the simplest ones like