要将 javascript 中的字符串转换为小写字母,请使用 tolocalelowercase() 方法。
示例您可以尝试运行以下代码来了解如何在 javascript 中使用 tolocalelowercase() 方法 -
实时演示
<!doctype html><html> <body> <script> var a = "welcome!"; document.write(a.tolocalelowercase()); </script> </body></html>
以上就是如何在javascript中将字符串转换为小写字母?的详细内容。
