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/function/prototype/index.html | 139 --------------------- 1 file changed, 139 deletions(-) delete mode 100644 files/zh-tw/web/javascript/reference/global_objects/function/prototype/index.html (limited to 'files/zh-tw/web/javascript/reference/global_objects/function') diff --git a/files/zh-tw/web/javascript/reference/global_objects/function/prototype/index.html b/files/zh-tw/web/javascript/reference/global_objects/function/prototype/index.html deleted file mode 100644 index 718454721b..0000000000 --- a/files/zh-tw/web/javascript/reference/global_objects/function/prototype/index.html +++ /dev/null @@ -1,139 +0,0 @@ ---- -title: Function.prototype -slug: Web/JavaScript/Reference/Global_Objects/Function/prototype -translation_of: Web/JavaScript/Reference/Global_Objects/Function -translation_of_original: Web/JavaScript/Reference/Global_Objects/Function/prototype ---- -
{{JSRef}}
- -

Function.prototype 屬性表示 {{jsxref("Function")}} 的原型物件。

- -

描述

- -

{{jsxref("Function")}} objects inherit from Function.prototypeFunction.prototype cannot be modified.

- -

屬性

- -
-
{{jsxref("Function.arguments")}} {{deprecated_inline}}
-
An array corresponding to the arguments passed to a function. This is deprecated as property of {{jsxref("Function")}}, use the {{jsxref("Functions/arguments", "arguments")}} object available within the function instead.
-
{{jsxref("Function.arity")}} {{obsolete_inline}}
-
Used to specifiy the number of arguments expected by the function, but has been removed. Use the {{jsxref("Function.length", "length")}} property instead.
-
{{jsxref("Function.caller")}} {{non-standard_inline}}
-
Specifies the function that invoked the currently executing function.
-
{{jsxref("Function.length")}}
-
Specifies the number of arguments expected by the function.
-
{{jsxref("Function.name")}}
-
The name of the function.
-
{{jsxref("Function.displayName")}} {{non-standard_inline}}
-
The display name of the function.
-
Function.prototype.constructor
-
Specifies the function that creates an object's prototype. See {{jsxref("Object.prototype.constructor")}} for more details.
-
- -

方法

- -
-
{{jsxref("Function.prototype.apply()")}}
-
Calls a function and sets its this to the provided value, arguments can be passed as an {{jsxref("Array")}} object.
-
{{jsxref("Function.prototype.bind()")}}
-
Creates a new function which, when called, has its this set to the provided value, with a given sequence of arguments preceding any provided when the new function was called.
-
{{jsxref("Function.prototype.call()")}}
-
Calls (executes) a function and sets its this to the provided value, arguments can be passed as they are.
-
{{jsxref("Function.prototype.isGenerator()")}} {{non-standard_inline}}
-
Returns true if the function is a generator; otherwise returns false.
-
{{jsxref("Function.prototype.toSource()")}} {{non-standard_inline}}
-
Returns a string representing the source code of the function. Overrides the {{jsxref("Object.prototype.toSource")}} method.
-
{{jsxref("Function.prototype.toString()")}}
-
Returns a string representing the source code of the function. Overrides the {{jsxref("Object.prototype.toString")}} method.
-
- -

規範

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('ES1')}}{{Spec2('ES1')}}Initial definition. Implemented in JavaScript 1.1
{{SpecName('ES5.1', '#sec-15.3.5.2', 'Function.prototype')}}{{Spec2('ES5.1')}} 
{{SpecName('ES6', '#sec-function-instances-prototype', 'Function.prototype')}}{{Spec2('ES6')}} 
{{SpecName('ESDraft', '#sec-function-instances-prototype', 'Function.prototype')}}{{Spec2('ESDraft')}} 
- -

瀏覽器相容性

- -
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -

參見

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