diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 563ca0a35e98678e2b7d5f154f31f496851e8d60 (patch) | |
tree | 7c99e7e037128217eca2080df671a742076c615b /files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html | |
parent | d7b2995cabe8d85a1827aa18bc270bdf739f3d13 (diff) | |
download | translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.gz translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.bz2 translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.zip |
remove code tag inside pre tag for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html index e2627097bd..82d2bc61d9 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html @@ -147,7 +147,7 @@ console.log( str2.valueOf() === str2 ); // false</pre> <h3 id="改写_.prototype.valueof">改写 .prototype.valueof</h3> -<pre class="brush: js line-numbers language-js"><code class="language-js">function MyNumberType(n) { +<pre class="brush: js line-numbers language-js">function MyNumberType(n) { this.number = n; } @@ -156,7 +156,7 @@ MyNumberType.prototype.valueOf = function() { }; var myObj = new MyNumberType(4); -myObj + 3; // 7</code></pre> +myObj + 3; // 7</pre> <h2 id="规范">规范</h2> |