GithubHelp home page GithubHelp logo

Comments (25)

tiyunchen avatar tiyunchen commented on May 5, 2024 7
  • 时间对象Date
  • 字符串对象String
  • 数学对象Math
  • 数值对象Number
  • 数组对象Array
  • 函数对象Function
  • 函数参数集合arguments
  • 布尔对象Boolean
  • 错误对象Error
  • 基础对象Object

from fe-interview.

Konata9 avatar Konata9 commented on May 5, 2024 7

JS 的内置对象也称为“全局作用域里的对象”。与“全局对象”不同,全局对象是通过 this 访问(在浏览器里也就是 window 对象)。

标准的内置对象可以理解为可以直接调用的对象。常用的有下面这些:

  • undefined
  • NaN
  • null
  • eval()
  • parseInt() / parseFloat()
  • encodeURI() / encodeURIComponent()
  • decodeURI() / decodeURIComponent()
  • Number / Math / Date / RegExp / Array / String / Map / WeekMap / Set / WeekSet / Symbol / Object / Function / Error (都是可以 new 出来的对象)
  • JSON

完整的对象要参考 MDN:JavaScript 标准内置对象

from fe-interview.

censek avatar censek commented on May 5, 2024 6
类型 举例
值属性 Infinity ,NaN ,undefined ,null ,globalThis
函数属性 eval() ,isNaN() ,parseInt() ,encodeURI() ,……
基本对象 Object ,Function ,Boolean ,Symbol ,Error ,……
数字和日期对象 Number ,Math,Date ,……
字符串 String ,RegExp
可索引的集合对象 Array ,……
使用键的集合对象 Map ,Set ,……
…… ……

from fe-interview.

daodaolee avatar daodaolee commented on May 5, 2024 4

https://segmentfault.com/a/1190000011467723

from fe-interview.

kruzabc avatar kruzabc commented on May 5, 2024 3

按我的理解,js内置的对象就是符合EcmaScript对规范的全局对象,而不是浏览器对象或者nodejs对象,也不应该是函数,据我所知满足这个只有:

  1. Math
  2. JSON
  3. Intl
  4. WebAssembly

from fe-interview.

poporeki avatar poporeki commented on May 5, 2024 2

内置对象是本地对象的子集

  • Global
  • Math
  • Json

from fe-interview.

myprelude avatar myprelude commented on May 5, 2024 1
  • Reg
  • Date
  • Math

from fe-interview.

Damon99999 avatar Damon99999 commented on May 5, 2024

Date
Math
Array
Number
String

from fe-interview.

AricZhu avatar AricZhu commented on May 5, 2024
  1. Math
  2. Regex
  3. Date
  4. Object, Array, Boolean, String, Number

from fe-interview.

huangd-d avatar huangd-d commented on May 5, 2024

按我的理解,js内置的对象就是符合EcmaScript对规范的全局对象,而不是浏览器对象或者nodejs对象,也不应该是函数,据我所知满足这个只有:

  1. Math
  2. JSON
  3. Intl
  4. WebAssembly

第3个还看到过, 第四个真牛逼。直接干 c 了!

from fe-interview.

larry0442 avatar larry0442 commented on May 5, 2024

值属性

  1. Infinity
  2. null
  3. undefined
  4. globalThis
  5. NaN(字面量)

函数属性

  1. parseInt /parseFloat
  2. eacape /unescape
  3. encodeURI(Component) / decodeRUI(Component)
  4. eval/ uneval
  5. isNaN
  6. isFinite

基本对象

  1. Object
  2. Function
  3. Boolean
  4. Symbol
  5. Error
  6. TypeError
  7. ...记不住

字符串

  1. String
  2. RegExp

数字、日期

  1. Date
  2. Number
  3. Math
  4. BigInt(新的)

使用键的对象

  1. Set
  2. Map

索引

  1. Array
  2. 还有一堆。。

from fe-interview.

larry0442 avatar larry0442 commented on May 5, 2024

值属性

  1. Infinity
  2. null
  3. undefined
  4. globalThis
  5. NaN(字面量)

函数属性

  1. parseInt /parseFloat
  2. eacape /unescape
  3. encodeURI(Component) / decodeRUI(Component)
  4. eval/ uneval
  5. isNaN
  6. isFinite

基本对象

  1. Object
  2. Function
  3. Boolean
  4. Symbol
  5. Error
  6. TypeError
  7. ...记不住

字符串

  1. String
  2. RegExp

数字、日期

  1. Date
  2. Number
  3. Math
  4. BigInt(新的)

使用键的对象

  1. Set
  2. Map

索引

  1. Array
  2. 还有一堆。。

实在是记不住那么多,看这里

from fe-interview.

blueRoach avatar blueRoach commented on May 5, 2024

Object
Function
Array
Null
undefined
Number
String
Boolean
Symbol
Math
RegExp
Set
Map
Proxy
Error

from fe-interview.

giggleCYT avatar giggleCYT commented on May 5, 2024

数据封装类对象:StringBooleanNumberArray,和Object;

其他对象:FunctionArgumentsMathDateRegExpError

from fe-interview.

Alex-Li2018 avatar Alex-Li2018 commented on May 5, 2024
  • 时间对象Date
  • 字符串对象String
  • 数学对象Math
  • 数值对象Number
  • 数组对象Array
  • 函数对象Function
  • 函数参数集合arguments
  • 布尔对象Boolean
  • 错误对象Error
  • 基础对象Object

牛逼而全

from fe-interview.

MrZ2019 avatar MrZ2019 commented on May 5, 2024

时间对象Date
字符串对象String
数学对象Math
数值对象Number
数组对象Array
函数对象Function
函数参数集合arguments
布尔对象Boolean
错误对象Error
基础对象Object

from fe-interview.

songlovena avatar songlovena commented on May 5, 2024

(1) 数据类型对象:Number、String、Array、Boolean、Object、Symbol

(2) 日期对象 Date

(3) 正则对象 RegExp

(4) 数学对象 Math

(5) 函数参数对象 Arguments

(6) 函数对象 Function

(7) JSON对象等

from fe-interview.

xiezhenghua123 avatar xiezhenghua123 commented on May 5, 2024

Array
String
Date
正则对象
function对象
Math对象

from fe-interview.

378406712 avatar 378406712 commented on May 5, 2024

(字符串)
字符串: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

from fe-interview.

zxcdsaqwe123 avatar zxcdsaqwe123 commented on May 5, 2024
// 1. Array
// 2. Object
// 3. window
// 4. Function

from fe-interview.

amikly avatar amikly commented on May 5, 2024

值属性

这些全局属性返回一个简单值,这些值没有自己的属性和方法

函数属性

全局函数可以之间调用,不需要在调用时指定所属对象,执行结束后会将结果直接返回给调用者

基本对象

基本对象时定义或使用其他对象的基础

基本对象包括 一般对象、函数对象和错误对象

错误对象

错误对象是一种特殊的基本对象。它们拥有基本的Error类型,同时也有多种具体的错误类型

数字和日期对象

用来表示数字、日期和执行数学计算的对象

字符串

用来表示和操作字符串的对象

可索引的集合对象

这些对象表示按照索引值来排序的数据集合,包括数组和类型数组、以及类数组结构的对象

使用键的集合对象

这些集合对象在存储数据时会使用到键,包括可迭代的MapSet,支持按照插入顺序来迭代顺序

结构化数据

这些对象用来表示和操作结构化的缓冲区数据,或使用 JSON (JavaScript Object Notation)编码的数据。

控制抽象对象

控件抽象可以帮助构造代码,尤其是异步代码(例如,不使用深度嵌套的回调)。

反射

国际化

ECMAScript核心的附加功能,用于支持多语言处理。

WebAssembly

其他

from fe-interview.

tk12138 avatar tk12138 commented on May 5, 2024

JS中常用的内置对象:Array对象,Date对象,String对象,Math对象,Global对象(全局属性和函数,可用于所有内置JS对象,比如isNaN(),parseInt(),parseFloat())

from fe-interview.

xiaoqiangz avatar xiaoqiangz commented on May 5, 2024

JS中常用的内置对象: Object、Math、Array、String、Date、Global、Function、Json等等

from fe-interview.

WangXi01 avatar WangXi01 commented on May 5, 2024

几个基础类型还有Date,Math,JSON

from fe-interview.

lili-0923 avatar lili-0923 commented on May 5, 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

from fe-interview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.