
js如何大小写转换?
js字母大小写转换方法:
1、转换成大写:toUpperCase()
2、转换成小写:toLowerCase()
3、举例:
示例一:
本组件封装了Angular1.0版本,组件实现了以下功能: 路由,子路由,轮播,cookie读写,加密,表单提交验证,拦截器,白名单,搜索过滤与排序(等级划分), 大小写转换,Map数组循环遍历动态修改后台数据等功能。
var a="aBcD"; a=a.toUpperCase(); alert(a);
提示出来的就是 ABCD
示例二:
var a="aBcD"; a=a.toLowerCase(); alert(a);
提示出来的就是 abcd
推荐教程:《JS教程》









