js字符串转换大小写,倒序

var str = "abcdEFG";
//转大写
str.toUpperCase() 
//转小写
str.tolowerCase()
//倒序
str.reverse()
//截取字符串 字符串.substr("从哪开始","截取几个")
str.substr(0,5)



猜你喜欢

转载自blog.csdn.net/yufengaotian/article/details/81001938