字符串的反转是借助于数组的反转来进行的
if(!String.prototype.reverse){
String.prototype.reverse=function(){
return Array.prototype.reverse.apply(this.split("")).join("");}
}
字符串的反转是借助于数组的反转来进行的
if(!String.prototype.reverse){
String.prototype.reverse=function(){
return Array.prototype.reverse.apply(this.split("")).join("");}
}