字符串全部转换为大写用str.toUpperCase()方法

var message="Hello world!";
var x=message.toUpperCase();
原文地址:https://www.cnblogs.com/jianxingjianyuan/p/6566530.html