toLowerCase()方法;

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

语法:var str = "String";

str .toLowerCase();// string

toUpperCase()方法;

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

语法:var str = "string";

str.toUpperCase()//STRING

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2022-02-24
  • 2022-01-04
  • 2021-08-25
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案