标签:
String.prototype.startWith=function(s){
if(s==null||s==""||this.length==0||s.length>this.length)
return false;
if(this.substr(0,s.length)==s)
return true;
else
return false;
return true;
}
标签:
原文地址:http://www.cnblogs.com/womow/p/4599410.html