javascript 转换大小写字母
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <title>Document</title>
6 </head>
7 <body>
8 <script>
9 var str = "abcdEFG";
10 //转换成小写
11 console.log(str.toLowerCase());
12 //转换成大写
13 console.log(str.toUpperCase());
14 </script>
15 </body>
16 </html>
本文来自博客园,作者:叶子玉,转载请注明原文链接:https://www.cnblogs.com/knuzy/p/8838306.html