From 01b0e12ba27b5069248fd09235e9a7143915ee30 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:02:49 +0800 Subject: remove `notranslate` class in zh-CN --- .../reference/global_objects/string/touppercase/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html') diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html index 0e45f82bac..820f1a80b3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html @@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toUpperCase

语法

-
str.toUpperCase()
+
str.toUpperCase()

返回值

@@ -40,14 +40,14 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toUpperCase

基本用法

-
console.log('alphabet'.toUpperCase()); // 'ALPHABET'
+
console.log('alphabet'.toUpperCase()); // 'ALPHABET'
 

将非字符串类型的 this (上下文)转为字符串

此方法会将任何非字符串类型的值转为字符串, 当你将其上下文 this 值设置为非字符串类型

-
const a = String.prototype.toUpperCase.call({
+
const a = String.prototype.toUpperCase.call({
   toString: function toString() {
     return 'abcdef';
   }
-- 
cgit v1.2.3-54-g00ecf