js字母大小写转换方法:
1、转换成大写:toUpperCase()
2、转换成小写:toLowerCase()
3、举例:
(1)var a="aBcD";
a=a.toUpperCase();
alert(a);
提示出来的就是 ABCD
(2)var a="aBcD";
a=a.toLowerCase();
alert(a);
提示出来的就是 abcd
js字母大小写转换方法:
猜你喜欢
转载自www.cnblogs.com/shaozhu520/p/10368194.html
今日推荐
周排行