toUpperCase

    toUpperCase() 把一个字符串全部变为大写:

    var s = 'Hello';

    s.toUpperCase(); // 返回'HELLO'