📌  相关文章
📜  Javascript 不区分大小写的字符串比较 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:19.702000             🧑  作者: Mango

代码示例1
var name1 = "Taylor Johnson";
var name2 ="taylor johnson";

//convert to lowercase for case insensitive comparison
if(name1.toLowerCase() === name2.toLowerCase()){
    //names are the same
}