第11天 简要描述下JS有哪些内置的对象
Activity
tiyunchen commentedon Jun 1, 2019
myprelude commentedon Jun 13, 2019
daodaolee commentedon Jun 18, 2019
https://segmentfault.com/a/1190000011467723
Damon99999 commentedon Jun 18, 2019
Date
Math
Array
Number
String
AricZhu commentedon Jun 24, 2019
poporeki commentedon Jul 4, 2019
内置对象是本地对象的子集
Konata9 commentedon Jul 26, 2019
JS 的内置对象也称为“全局作用域里的对象”。与“全局对象”不同,全局对象是通过
this
访问(在浏览器里也就是window
对象)。标准的内置对象可以理解为可以直接调用的对象。常用的有下面这些:
new
出来的对象)完整的对象要参考 MDN:JavaScript 标准内置对象
censek commentedon Oct 12, 2019
kruzabc commentedon Dec 26, 2019
按我的理解,js内置的对象就是符合EcmaScript对规范的全局对象,而不是浏览器对象或者nodejs对象,也不应该是函数,据我所知满足这个只有:
huangd-d commentedon Mar 18, 2020
第3个还看到过, 第四个真牛逼。直接干 c 了!
larry0442 commentedon Apr 7, 2020
值属性
函数属性
基本对象
字符串
数字、日期
使用键的对象
索引
larry0442 commentedon Apr 7, 2020
实在是记不住那么多,看这里
blueRoach commentedon May 27, 2020
Object
Function
Array
Null
undefined
Number
String
Boolean
Symbol
Math
RegExp
Set
Map
Proxy
Error
giggleCYT commentedon Jun 3, 2020
数据封装类对象:
String
,Boolean
,Number
,Array
,和Object
;其他对象:
Function
,Arguments
,Math
,Date
,RegExp
,Error
Alex-Li2018 commentedon Jul 28, 2020
牛逼而全
smile-2008 commentedon Sep 7, 2020
时间对象Date
字符串对象String
数学对象Math
数值对象Number
数组对象Array
函数对象Function
函数参数集合arguments
布尔对象Boolean
错误对象Error
基础对象Object
songlovena commentedon Jan 23, 2021
(1) 数据类型对象:Number、String、Array、Boolean、Object、Symbol
(2) 日期对象 Date
(3) 正则对象 RegExp
(4) 数学对象 Math
(5) 函数参数对象 Arguments
(6) 函数对象 Function
(7) JSON对象等
xiezhenghua123 commentedon Apr 12, 2021
Array
String
Date
正则对象
function对象
Math对象
378406712 commentedon Apr 26, 2021
(字符串)
字符串:String
正则:RegExp
(数字和日期对象)
日期:Date
数学:Math
数值:Number
大数:BigInt
(错误对象)
错误:Error
...
(基本对象)
布尔值:Boolean
唯一值:Symbol
对象:Object
函数:Function
(可索引集合对象)
数组:Array
(键集合对象)
Map,Set,WeakMap,WeakSet
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects
zxcdsaqwe123 commentedon Oct 1, 2021
amikly commentedon Oct 29, 2021
值属性
这些全局属性返回一个简单值,这些值没有自己的属性和方法
Infinity
NaN
undefined
globalThis
函数属性
全局函数可以之间调用,不需要在调用时指定所属对象,执行结束后会将结果直接返回给调用者
eval()
uneval()
isFinite()
isNaN()
parseFloat()
parseInt()
decodeURI()
decodeURIComponent()
encodeURI()
encodeURIComponent()
escape()
unescape()
基本对象
基本对象时定义或使用其他对象的基础
基本对象包括 一般对象、函数对象和错误对象
Object
Function
Boolean
Symbol
错误对象
错误对象是一种特殊的基本对象。它们拥有基本的
Error
类型,同时也有多种具体的错误类型Error
AggregateError
EvalError
InternalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
数字和日期对象
用来表示数字、日期和执行数学计算的对象
Number
BigInt
Math
Date
字符串
用来表示和操作字符串的对象
String
RegExp
可索引的集合对象
这些对象表示按照索引值来排序的数据集合,包括数组和类型数组、以及类数组结构的对象
Array
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
BigInt64Array
BigUint64Array
使用键的集合对象
这些集合对象在存储数据时会使用到键,包括可迭代的
Map
和Set
,支持按照插入顺序来迭代顺序Map
Set
WeakMap
WeakSet
结构化数据
这些对象用来表示和操作结构化的缓冲区数据,或使用 JSON (JavaScript Object Notation)编码的数据。
ArrayBuffer
SharedArrayBuffer
Atomics
DataView
JSON
控制抽象对象
控件抽象可以帮助构造代码,尤其是异步代码(例如,不使用深度嵌套的回调)。
Promise
Generator
GeneratorFunction
AsyncFunction
反射
Reflect
Proxy
国际化
ECMAScript核心的附加功能,用于支持多语言处理。
Intl
Intl.Collator
Intl.DateTimeFormat
Intl.ListFormat
Intl.NumberFormat
Intl.PluralRules
Intl.RelativeTimeFormat
Intl.Locale
WebAssembly
WebAssembly
WebAssembly.Module
WebAssembly.Instance
WebAssembly.Memory
WebAssembly.Table
WebAssembly.CompileError
WebAssembly.LinkError
(en-US)WebAssembly.RuntimeError
其他
arguments
tk12138 commentedon Nov 17, 2021
JS中常用的内置对象:Array对象,Date对象,String对象,Math对象,Global对象(全局属性和函数,可用于所有内置JS对象,比如isNaN(),parseInt(),parseFloat())
xiaoqiangz commentedon May 24, 2022
JS中常用的内置对象: Object、Math、Array、String、Date、Global、Function、Json等等
WangXi01 commentedon Jul 13, 2022
几个基础类型还有Date,Math,JSON
lili-0923 commentedon Feb 2, 2024
math、date、string、array、object、number、boolean、regexp、function、error、error.prototype、promise、promise.prototype、map、set、weakmap、weakset、symbol、proxy、proxy.prototype和reflect
pengsir120 commentedon Sep 12, 2024
1.Map
2.Set
3.WeakMap
4.WeakSet
5.Object
6.Function
7.Boolean
8.Number
9.Math
10.Date
12.String
13.Array
14.RegExp
15.Reflect
16.Proxy
17.Promise
18.Iterator
19.Error