如何用js对字符串进行大小写转换
1、打开我们的编辑器。

2、这里创建一个字符串作为示范。

3、toUpperCase()可以转为大写。

4、toLowerCase()可以转为小写。

5、toLocaleLowerCase()是针对当地的小写。

6、toLocaleUpperCase()是针对当地的大写。

1、打开我们的编辑器。
2、这里创建一个字符串作为示范。
3、toUpperCase()可以转为大写。
4、toLowerCase()可以转为小写。
5、toLocaleLowerCase()是针对当地的小写。
6、toLocaleUpperCase()是针对当地的大写。