Unshift.Unshift首位添加
function Unshift (newElement : object, optionalElement : object) : int
Description描述
Unshift adds one or more elements to the beginning of an array and returns the new length of the array.
在数组开始位置添加一个或多个元素并返回新的数组长度。
var arr = new Array ("圣", "典");arr.Unshift("中文手册", "Unity");// 打印结果为"中文手册,Unity,圣,典"print(arr);