如何在JavaScript中进行不区分大小写的字符串比较?
发布于 2012-12-22 05:15:03
我写了一个扩展。非常琐碎
if (typeof String.prototype.isEqual!= 'function') {
String.prototype.isEqual = function (str){
return this.toUpperCase()==str.toUpperCase();
};
}https://stackoverflow.com/questions/2140627
复制相似问题