Javascript帮助手册

Array

var arr = new Array(3)
arr[0] = "George"
arr[1] = "John"
arr[2] = "Thomas"

var arr2 = new Array(3)
arr2[0] = "James"
arr2[1] = "Adrew"
arr2[2] = "Martin"

document.write(arr.concat(arr2))

George,John,Thomas,James,Adrew,Martin
var arr = new Array(3)
arr[0] = "George"
arr[1] = "John"
arr[2] = "Thomas"

document.write(arr.join("."))

George.John.Thomas

Boolean


Date


Math


Number


String


RegExp


全局函数


Window



Screen


History


Location


Document


DOM Element


DOM Attribute


DOM Event

*****
Written by Zheng Yu on 13 August 2014