JS toLowerCase()方法 toUpperCase()方法

toLowerCase()方法;

定义:toLowerCase() 方法用于把字符串转换为小写。

语法:var str = "String";

str .toLowerCase();// string

toUpperCase()方法;

定义:toUpperCase()方法用于把字符串转换为大写。

语法:var str = "string";

str.toUpperCase()//STRING

孜孜不倦,必能求索;风尘仆仆,终有归途。
原文地址:https://www.cnblogs.com/liyuspace/p/9262551.html