JavaScript 字符串 – toLowerCase() 方法 描述 该方法返回调用字符串值转换为小写的结果。 语法 它的语法如下 – string.toLowerCase( )HTMLCopy 返回值 返回调用字符串值转换为小写的结果。 示例 尝试下面的例子。 <html> <head> <title>JavaScript String toLowerCase() Method</title> </head> <body> <script type = "text/javascript"> var str = "Apples are round, and Apples are Juicy."; document.write(str.toLowerCase( )); </script> </body> </html>HTMLCopy 输出 apples are round, and apples are juicy.HTMLCopy