- Array.prototype.push=function(str){
- var temparr = str.toString().split(",");
- temparr.sort();
- this[this.length]=temparr.toString();
- return this.length;
- }
- //该片段来自于http://www.codesnippet.cn/detail/041220137750.html
来源: http://www.codesnippet.cn/detail/041220137750.html