diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:08 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | ded7faccb46997b20767ef9a3e6d5f5810a52cf8 (patch) | |
tree | c288f54ecd9d3a00b04b178e673967e4351f01d7 /files/zh-cn/web/javascript/reference/global_objects/object | |
parent | 60c5be764d1ae5958db85075ffe8322e9118bd5f (diff) | |
download | translated-content-ded7faccb46997b20767ef9a3e6d5f5810a52cf8.tar.gz translated-content-ded7faccb46997b20767ef9a3e6d5f5810a52cf8.tar.bz2 translated-content-ded7faccb46997b20767ef9a3e6d5f5810a52cf8.zip |
remove dir attribute
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/object')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html | 2 |
1 files changed, 1 insertions, 1 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 1067350917..6280feeb05 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 @@ -88,7 +88,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/valueOf <pre class="brush: js">myNumberType.valueOf()</pre> <div class="note"> -<p dir="ltr"><strong>注意:</strong>字符串上下文中的对象通过 {{jsxref("Object.toString", "toString()")}}方法转换,这与使用<code>valueOf</code>转换为原始字符串的{{jsxref("String")}}对象不同。所有对象都能转换成一个“<code>[object <em>类型</em>]</code>”这种格式的字符串。但是很多对象不能转换为数字,布尔或函数。</p> +<p><strong>注意:</strong>字符串上下文中的对象通过 {{jsxref("Object.toString", "toString()")}}方法转换,这与使用<code>valueOf</code>转换为原始字符串的{{jsxref("String")}}对象不同。所有对象都能转换成一个“<code>[object <em>类型</em>]</code>”这种格式的字符串。但是很多对象不能转换为数字,布尔或函数。</p> </div> <h2 id="示例">示例</h2> |