在javascript中,可以使用toLowerCase()函数来将大写字符串转为小写。下面通过示例了解一下:var str="Hello World!"console.log(str.toLowerCase());输出:hello world!