toUpperCase
toUpperCase() 把一个字符串全部变为大写:
var s = 'Hello'; s.toUpperCase(); // 返回'HELLO'
本文档使用 Sou.st 构建