arguments);
//添加方法
values.toPipedString = function(){
return this.join(“|”);
};
//返回数组
return values;
}
var colors = new SpecialArray(“red”, “blue”, “green”);
alert(colors.toPipedString()); //“red|blue|green”
```

2015-09-08

⬆︎TOP