2025年01月26日 建站教程
如何利用js实现大小写字母互相转换,下面web建站小编给大家简单介绍一下toUpperCase()方法和toLowerCase()方法的运用!
具体实现代码:
var str = 'HEllo'
console.log('大写', str.toUpperCase()) //大写 HELLO
console.log('小写', str.toLowerCase()) //小写 hello
			
                                        本文链接:http://so.lmcjl.com/news/22088/