这篇文章按照字母顺序列出了MDN里边所有的JavaScript属性。
Found 140 pages with the tag "Property":
A
-
arguments
: Thefunction.arguments
property refers to an an array-like object corresponding to the arguments passed to a function. Use the simple variablearguments
instead. This property is forbidden in strict model due to tail call optimization. -
arguments[@@iterator]
: The initial value of the@@iterator
property is the same function object as the initial value of theArray.prototype.values
property. -
arity
: Thearity
property used to return the number of arguments expected by the function, however, it no longer exists and has been replaced by theFunction.prototype.length
property. -
asyncIterator
: TheSymbol.asyncIterator
well-known symbol specifies the default AsyncIterator for an object. If this property is set on an object, it is an async iterable and can be used in afor await...of
loop.
B
-
BYTES_PER_ELEMENT
: TheTypedArray.BYTES_PER_ELEMENT
property represents the size in bytes of each element in an typed array. -
buffer
: Thebuffer
accessor property represents theArrayBuffer
orSharedArrayBuffer
referenced by theDataView
at construction time. -
buffer
: Thebuffer
accessor property represents theArrayBuffer
referenced by a TypedArray at construction time. -
buffer
: Thebuffer
prototype property of theMemory
object returns the buffer contained in the memory. -
byteLength
: ThebyteLength
accessor property represents the length of anArrayBuffer
in bytes. -
byteLength
: ThebyteLength
accessor property represents the length (in bytes) of this view from the start of itsArrayBuffer
orSharedArrayBuffer
. -
byteLength
: ThebyteLength
accessor property represents the length of anSharedArrayBuffer
in bytes. -
byteLength
: ThebyteLength
accessor property represents the length (in bytes) of a typed array. -
byteOffset
: ThebyteOffset
accessor property represents the offset (in bytes) of this view from the start of itsArrayBuffer
orSharedArrayBuffer
. -
byteOffset
: ThebyteOffset
accessor property represents the offset (in bytes) of a typed array from the start of itsArrayBuffer
.
C
-
callee
: Thearguments.callee
property contains the currently executing function. -
caller
: The obsoletearguments.caller
property used to provide the function that invoked the currently executing function. This property has been removed and no longer works. -
caller
: Thefunction.caller
property returns the function that invoked the specified function. This property is forbidden in strict model. -
columnNumber
: ThecolumnNumber
property contains the column number in the line of the file that raised this error. -
constructor
: Theconstructor
property returns a reference to theObject
constructor function that created the instance object. Note that the value of this property is a reference to the function itself, not a string containing the function's name. The value is only read-only for primitive values such as1
,true
and"test"
.
D
-
debuggerEnabled
: Thedebug.debuggerEnabled
property determines whether debugging is enabled for the script context. Debugging may be enabled or disabled whether or not a debugger is attached. -
delete operator
: The JavaScriptdelete
operator removes a property from an object; if no more references to the same property are held, it is eventually released automatically. -
description
: The read-onlydescription
property is a string returning the optional description ofSymbol
objects. -
displayName
: Thefunction.displayName
property returns the display name of the function. -
dotAll
: ThedotAll
property indicates whether or not the "s
" flag is used with the regular expression.dotAll
is a read-only property of an individual regular expression instance.
E
-
E
: TheMath.E
property represents the base of natural logarithms, e, approximately 2.718. -
EPSILON
: TheNumber.EPSILON
property represents the difference between 1 and the smallest floating point number greater than 1. -
exports
: Theexports
readonly property of theWebAssembly.Instance
object prototype returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript.
F
-
fileName
: ThefileName
property contains the path to the file that raised this error. -
flags
: Theflags
property returns a string consisting of the flags of the current regular expression object.
G
-
get ArrayBuffer[@@species]
: TheArrayBuffer[@@species]
accessor property returns theArrayBuffer
constructor. -
get Map[@@species]
: TheMap[@@species]
accessor property returns theMap
constructor. -
get RegExp[@@species]
: TheRegExp[@@species]
accessor property returns theRegExp
constructor. -
get Set[@@species]
: TheSet[@@species]
accessor property returns theSet
constructor. -
get TypedArray[@@species]
: TheTypedArray[@@species]
accessor property returns the constructor of a typed array. -
global
: Theglobal
property indicates whether or not the "g
" flag is used with the regular expression.global
is a read-only property of an individual regular expression instance.
H
-
hasInstance
: TheSymbol.hasInstance
well-known symbol is used to determine if a constructor object recognizes an object as its instance. Theinstanceof
operator's behavior can be customized by this symbol.
I
-
ignoreCase
: TheignoreCase
property indicates whether or not the "i
" flag is used with the regular expression.ignoreCase
is a read-only property of an individual regular expression instance. -
input ($_)
: The non-standardinput
property is a static property of regular expressions that contains the string against which a regular expression is matched.RegExp.$_
is an alias for this property. -
isConcatSpreadable
: TheSymbol.isConcatSpreadable
well-known symbol is used to configure if an object should be flattened to its array elements when using theArray.prototype.concat()
method. -
iterator
: TheSymbol.iterator
well-known symbol specifies the default iterator for an object. Used byfor...of
.
J
K
L
-
LN10
: TheMath.LN10
property represents the natural logarithm of 10, approximately 2.302: -
LN2
: TheMath.LN2
property represents the natural logarithm of 2, approximately 0.693: -
LOG10E
: TheMath.LOG10E
property represents the base 10 logarithm of e, approximately 0.434: -
LOG2E
: TheMath.LOG2E
property represents the base 2 logarithm of e, approximately 1.442: -
lastIndex
: ThelastIndex
is a read/write integer property of regular expression instances that specifies the index at which to start the next match. -
lastMatch ($&)
: The non-standard lastMatch property is a static and read-only property of regular expressions that contains the last matched characters.RegExp.$&
is an alias for this property. -
lastParen ($+)
: The non-standard lastParen property is a static and read-only property of regular expressions that contains the last parenthesized substring match, if any.RegExp.$+
is an alias for this property. -
leftContext ($`)
: The non-standard leftContext property is a static and read-only property of regular expressions that contains the substring preceding the most recent match.RegExp.$`
is an alias for this property. -
length
: Thearguments.length
property contains the number of arguments passed to the function. -
length
: Thelength
accessor property represents the length (in elements) of a typed array. -
length
: Thelength
property indicates the number of parameters expected by the function. -
length
: Thelength
property of an object which is an instance of typeArray
sets or returns the number of elements in that array. The value is an unsigned, 32-bit integer that is always numerically greater than the highest index in the array. -
length
: Thelength
property of aString
object indicates the length of a string, in UTF-16 code units. -
length
: Thelength
prototype property of theWebAssembly.Table
object returns the length of the table, i.e. the number of elements in the table. -
lineNumber
: ThelineNumber
property contains the line number in the file that raised this error.
M
-
MAX_SAFE_INTEGER
: TheNumber.MAX_SAFE_INTEGER
constant represents the maximum safe integer in JavaScript (253 - 1
). -
MAX_VALUE
: TheNumber.MAX_VALUE
property represents the maximum numeric value representable in JavaScript. -
MIN_SAFE_INTEGER
: TheNumber.MIN_SAFE_INTEGER
constant represents the minimum safe integer in JavaScript (-(253 - 1)
). -
MIN_VALUE
: TheNumber.MIN_VALUE
property represents the smallest positive numeric value representable in JavaScript. -
match
: TheSymbol.match
well-known symbol specifies the matching of a regular expression against a string. This function is called by theString.prototype.match()
method. -
matchAll
: TheSymbol.matchAll
well-known symbol returns an iterator, that yields matches of the regular expression against a string. This function is called by theString.prototype.matchAll()
method. -
message
: Themessage
property is a human-readable description of the error. -
msTraceAsyncCallbackCompleted
: Indicates that the callback stack associated with a previously specified asynchronous operation has completed. -
multiline
: Themultiline
property indicates whether or not the "m
" flag is used with the regular expression.multiline
is a read-only property of an individual regular expression instance.
N
-
NEGATIVE_INFINITY
: TheNumber.NEGATIVE_INFINITY
property represents the negative Infinity value. -
NaN
: The globalNaN
property is a value representing Not-A-Number. -
NaN
: TheNumber.NaN
property represents Not-A-Number. Equivalent ofNaN
. -
name
: Thename
property represents a name for the type of error. The initial value is "Error". -
name
: AFunction
object's read-onlyname
property indicates the function's name as specified when it was created, or"anonymous"
for functions created anonymously. -
name
: TheTypedArray.name
property represents a string value of the typed array constructor name.
O
P
-
PI
: TheMath.PI
property represents the ratio of the circumference of a circle to its diameter, approximately 3.14159: -
POSITIVE_INFINITY
: TheNumber.POSITIVE_INFINITY
property represents the positive Infinity value. -
parse: bad parsing
:SyntaxError
-
prototype
: TheNumber.prototype
property represents the prototype for theNumber
constructor. -
prototype
: TheArrayBuffer.prototype
property represents the prototype for theArrayBuffer
object. -
prototype
: TheBigInt.prototype
property represents the prototype for theBigInt
constructor. -
prototype
: TheBoolean.prototype
property represents the prototype for theBoolean
constructor. -
prototype
: TheDataView
.prototype
property represents the prototype for theDataView
object. -
prototype
: TheDate.prototype
property represents the prototype for theDate
constructor. -
prototype
: TheError.prototype
property represents the prototype for theError
constructor. -
prototype
: TheEvalError.prototype
property represents the prototype of theEvalError
constructor. -
prototype
: TheFunction.prototype
property represents theFunction
prototype object. -
prototype
: TheGeneratorFunction.prototype
property represents theGeneratorFunction
prototype object. -
prototype
: TheInternalError.prototype
property represents the prototype of theInternalError
constructor. -
prototype
: TheIntl.Collator.prototype
property represents the prototype object for theIntl.Collator
constructor. -
prototype
: TheIntl.DateTimeFormat.prototype
property represents the prototype object for theIntl.DateTimeFormat
constructor. -
prototype
: SeeListFormat
for a description ofIntl.ListFormat
instances. -
prototype
: TheIntl.NumberFormat.prototype
property represents the prototype object for theIntl.NumberFormat
constructor. -
prototype
: TheIntl.PluralRules.prototype
property represents the prototype object for theIntl.PluralRules
constructor. -
prototype
: TheIntl.RelativeTimeFormat.prototype
property represents the prototype object for theIntl.RelativeTimeFormat
constructor. -
prototype
: TheMap.prototype
property represents the prototype for theMap
constructor. -
prototype
: TheWebAssembly.Module
.prototype
property represents the prototype for theWebAssembly.Module()
constructor. -
prototype
:Array
instances inherit fromArray.prototype
. As with all constructors, you can change the constructor's prototype object to make changes to allArray
instances. For example, you can add new methods and properties to extend allArray
objects. This is used for polyfilling, for example. -
prototype
: TheWebAssembly.Memory
.prototype
property represents the prototype for theWebAssembly.Memory()
constructor. -
prototype
: TheAsyncFunction.prototype
property represents theAsyncFunction
prototype object. -
prototype
: TheObject.prototype
is a property of theObject
constructor. It is also the end of a prototype chain. -
prototype
: ThePromise.prototype
property represents the prototype for thePromise
constructor. -
prototype
: TheRangeError.prototype
property represents the prototype theRangeError
constructor. -
prototype
: TheReferenceError.prototype
property represents the prototype for theReferenceError
constructor. -
prototype
: TheRegExp.prototype
property represents the prototype object for theRegExp
constructor. -
prototype
: TheSet.prototype
property represents the prototype for theSet
constructor. -
prototype
: TheSharedArrayBuffer.prototype
property represents the prototype for theSharedArrayBuffer
object. -
prototype
: TheString.prototype
property represents theString
prototype object. -
prototype
: TheSymbol
.prototype
property represents the prototype for theSymbol
constructor. -
prototype
: TheSyntaxError.prototype
property represents the prototype for theSyntaxError
constructor. -
prototype
: TheTypeError.prototype
property represents the prototype for theTypeError
constructor. -
prototype
: TheTypedArray
.prototype
property represents the prototype forTypedArray
constructors. -
prototype
: TheURIError.prototype
property represents the prototype for theURIError
constructor. -
prototype
: TheWeakMap
.prototype
property represents the prototype for theWeakMap
constructor. -
prototype
: TheWeakSet
.prototype
property represents the prototype for theWeakSet
constructor. -
prototype
: TheWebAssembly.Global
.prototype
property represents the prototype for theWebAssembly.Global()
constructor. -
prototype
: TheWebAssembly.Instance
.prototype
property represents the prototype for theWebAssembly.Instance()
constructor. -
prototype
: TheWebAssembly.Table
.prototype
property represents the prototype for theWebAssembly.Table()
constructor. -
prototype[@@toStringTag]
: TheMap[@@toStringTag]
property has an initial value of "Map". -
prototype[@@unscopables]
: The@@unscopable
symbol property contains property names that were not included in the ECMAScript standard prior to the ES2015 version. These properties are excluded fromwith
statement bindings.
Q
R
-
replace
: TheSymbol.replace
well-known symbol specifies the method that replaces matched substrings of a string. This function is called by theString.prototype.replace()
method. -
rightContext ($')
: The non-standard rightContext property is a static and read-only property of regular expressions that contains the substring following the most recent match.RegExp.$'
is an alias for this property.
S
-
SQRT1_2
: TheMath.SQRT1_2
property represents the square root of 1/2 which is approximately 0.707: -
SQRT2
: TheMath.SQRT2
property represents the square root of 2, approximately 1.414: -
search
: TheSymbol.search
well-known symbol specifies the method that returns the index within a string that matches the regular expression. This function is called by theString.prototype.search()
method. -
setNonUserCodeExceptions
: If this property is set totrue
within a given scope, the debugger can then choose whether to take some specified action on exceptions thrown inside that scope: for instance, if the developer wishes to break on user-unhandled exceptions. Setting this property tofalse
is the same as never having set the property. -
size
: Thesize
accessor property returns the number of (unique) elements in aSet
object. -
size
: Thesize
accessor property returns the number of elements in aMap
object. -
source
: Thesource
property returns aString
containing the source text of the regexp object, and it doesn't contain the two forward slashes on both sides and any flags. -
species
: The well-known symbolSymbol.species
specifies a function-valued property that the constructor function uses to create derived objects. -
split
: TheSymbol.split
well-known symbol specifies the method that splits a string at the indices that match a regular expression. This function is called by theString.prototype.split()
method. -
stack
: The non-standardstack
property ofError
objects offer a trace of which functions were called, in what order, from which line and file, and with what arguments. The stack string proceeds from the most recent calls to earlier ones, leading back to the original global scope call. -
sticky
: Thesticky
property reflects whether or not the search is sticky (searches in strings only from the index indicated by thelastIndex
property of this regular expression).sticky
is a read-only property of an individual regular expression object.
T
-
toPrimitive
: TheSymbol.toPrimitive
is a symbol that specifies a function valued property that is called to convert an object to a corresponding primitive value. -
toStringTag
: TheSymbol.toStringTag
well-known symbol is a string valued property that is used in the creation of the default string description of an object. It is accessed internally by theObject.prototype.toString()
method.
U
-
unicode
: Theunicode
property indicates whether or not the "u
" flag is used with a regular expression.unicode
is a read-only property of an individual regular expression instance. -
unscopables
: TheSymbol.unscopables
well-known symbol is used to specify an object value of whose own and inherited property names are excluded from thewith
environment bindings of the associated object.
V
W
X
Y
Z
_
-
__count__
: The__count__
property used to store the count of enumerable properties on the object, but it has been removed. -
__noSuchMethod__
: The__noSuchMethod__
property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available. -
__parent__
: The__parent__
property used to point to an object's context, but it has been removed. -
__proto__
: The__proto__
property ofObject.prototype
is an accessor property (a getter function and a setter function) that exposes the internal[[Prototype]]
(either an object ornull
) of the object through which it is accessed.
$
-
$1-$9
: The non-standard $1, $2, $3, $4, $5, $6, $7, $8, $9 properties are static and read-only properties of regular expressions that contain parenthesized substring matches.