原陣列
var a=[1,2,3] console.log(a.reverse()) // [3,2,1]
var a=["c","v","a"] console.log(a.sort())
回傳
var a=["a","b","c"] var b=[1,2,3] c=a.concat(b) console.log(c)
沒有留言:
張貼留言