Skip to content

Instantly share code, notes, and snippets.

@upangka
Created January 3, 2020 03:16
Show Gist options
  • Save upangka/3968ed304c8fd5c286d436b31a07895e to your computer and use it in GitHub Desktop.
Save upangka/3968ed304c8fd5c286d436b31a07895e to your computer and use it in GitHub Desktop.
多个数组拼接 javascript-2020-01-03
let arr = [2,3]
let arr_one = [5,1]
let arr_two = [9,6]
let res = arr.concat(arr_one,arr_two)
console.log(res)
// [2, 3, 5, 1, 9, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment