在数组末尾加入一个值。
var arr = new Array ("Hello");
arr.Add("World");
//打印结果"Hello", "World"
print (arr);
var a = ['a', 'b', 'c', 'd']; Array.add(a, 'e'); // View the results: "abcde" alert(a.toString());
在数组末尾加入一个值。
var arr = new Array ("Hello");
arr.Add("World");
//打印结果"Hello", "World"
print (arr);
var a = ['a', 'b', 'c', 'd']; Array.add(a, 'e'); // View the results: "abcde" alert(a.toString());