返回一个字符串,该字符串中的所有字母都被转化为大写字母。 strvariable.touppercase( )
"string literal".touppercase( )
说明touppercase 方法对非字母字符不会产生影响。 示例下面的示例演示了 touppercase 方法的效果: var strvariable = "this is a string object";strvariable = strvariable.touppercase( );
在执行上一条语句后 strvariable 的值为: this is a string object
要求版本 1 请参阅string 对象的方法 | string 对象的属性 | tolowercase 方法 应用于: string 对象
|