前端验证不区分大小写

把两个字符串全转换成大写或者小写,就ok

str.toUpperCase() str转化成大写
str.toLowerCase() str转成小写

猜你喜欢

转载自blog.csdn.net/qq_37356556/article/details/105474298