此方法返回转换为小写字符串。
string.toLowerCase( )
返回转换为小写的调用字符串值。
链接:https://www.learnfk.comhttps://www.learnfk.com/javascript/string-tolowercase.html
来源:LearnFk无涯教程网
<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>
运行上面代码输出
apples are round, and apples are juicy.
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)