JavaScript String toLowerCase()方法 描述 该方法返回调用字符串值转换为小写的结果。 语法 其语法如下所示 – string.toLowerCase()JavaScriptCopy 返回值 将调用的字符串值转换为小写。 示例 尝试以下示例。 <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>JavaScriptCopy 输出 apples are round, and apples are juicy.JavaScriptCopy