From 43a5cac2eff22c21071800e13bef12af9d3a37d0 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 13:12:08 +0100 Subject: unslug zh-tw: move --- .../global_objects/number/prototype/index.html | 85 ---------------------- 1 file changed, 85 deletions(-) delete mode 100644 files/zh-tw/web/javascript/reference/global_objects/number/prototype/index.html (limited to 'files/zh-tw/web/javascript/reference/global_objects/number') diff --git a/files/zh-tw/web/javascript/reference/global_objects/number/prototype/index.html b/files/zh-tw/web/javascript/reference/global_objects/number/prototype/index.html deleted file mode 100644 index bfd57f3d21..0000000000 --- a/files/zh-tw/web/javascript/reference/global_objects/number/prototype/index.html +++ /dev/null @@ -1,85 +0,0 @@ ---- -title: Number.prototype -slug: Web/JavaScript/Reference/Global_Objects/Number/prototype -translation_of: Web/JavaScript/Reference/Global_Objects/Number -translation_of_original: Web/JavaScript/Reference/Global_Objects/Number/prototype ---- -
{{JSRef}}
- -

Number.prototype 屬性用來表示 {{jsxref("Number")}} 建構式的原型。

- -
{{js_property_attributes(0, 0, 0)}}
- -

說明

- -

所有 {{jsxref("Number")}} 實體都繼承自 Number.prototype 。{{jsxref("Number")}} 建構式的原型物件可以被修改並作用在所有 {{jsxref("Number")}} 實體。

- -

屬性

- -
-
Number.prototype.constructor
-
回傳建立這個物件實體的建構式。預設為 {{jsxref("Number")}} 物件。
-
- -

方法

- -
-
{{jsxref("Number.prototype.toExponential()")}}
-
回傳以「科學記數法」表示的數值字串。
-
{{jsxref("Number.prototype.toFixed()")}}
-
回傳以定點表示的數值字串。
-
{{jsxref("Number.prototype.toLocaleString()")}}
-
回傳以當地語言為主的數值字串。這覆寫 {{jsxref("Object.prototype.toLocaleString()")}} 的方法。
-
{{jsxref("Number.prototype.toPrecision()")}}
-
回傳以定點或科學記數表示的數值字串。
-
{{jsxref("Number.prototype.toSource()")}} {{non-standard_inline}}
-
Returns an object literal representing the specified {{jsxref("Number")}} object; you can use this value to create a new object. Overrides the {{jsxref("Object.prototype.toSource()")}} method.
-
{{jsxref("Number.prototype.toString()")}}
-
回傳以特定基數表示的數值字串。這覆寫 {{jsxref("Object.prototype.toString()")}} 的方法 。
-
{{jsxref("Number.prototype.valueOf()")}}
-
回傳這個物件的原始型別,即原始數值。這覆寫 {{jsxref("Object.prototype.valueOf()")}} 。
-
- -

規範

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
規範狀態註記
{{SpecName('ES1')}}{{Spec2('ES1')}}Initial definition. Implemented in JavaScript 1.1.
{{SpecName('ES5.1', '#sec-15.7.4', 'Number')}}{{Spec2('ES5.1')}} 
{{SpecName('ES6', '#sec-properties-of-the-number-prototype-object', 'Number')}}{{Spec2('ES6')}} 
{{SpecName('ESDraft', '#sec-properties-of-the-number-prototype-object', 'Number')}}{{Spec2('ESDraft')}} 
- -

瀏覽器相容性

- - - -

{{Compat("javascript.builtins.Number.prototype")}}

- -

參見

- - -- cgit v1.2.3-54-g00ecf