-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[js] 第11天 简要描述下JS有哪些内置的对象 #33
Comments
|
|
Date |
|
内置对象是本地对象的子集
|
JS 的内置对象也称为“全局作用域里的对象”。与“全局对象”不同,全局对象是通过 标准的内置对象可以理解为可以直接调用的对象。常用的有下面这些:
完整的对象要参考 MDN:JavaScript 标准内置对象 |
|
按我的理解,js内置的对象就是符合EcmaScript对规范的全局对象,而不是浏览器对象或者nodejs对象,也不应该是函数,据我所知满足这个只有:
|
第3个还看到过, 第四个真牛逼。直接干 c 了! |
值属性
函数属性
基本对象
字符串
数字、日期
使用键的对象
索引
|
实在是记不住那么多,看这里 |
Object |
数据封装类对象: 其他对象: |
牛逼而全 |
时间对象Date |
(1) 数据类型对象:Number、String、Array、Boolean、Object、Symbol |
Array |
(字符串) (数字和日期对象) (错误对象) (基本对象) (可索引集合对象) (键集合对象) https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects |
|
JS中常用的内置对象:Array对象,Date对象,String对象,Math对象,Global对象(全局属性和函数,可用于所有内置JS对象,比如isNaN(),parseInt(),parseFloat()) |
JS中常用的内置对象: Object、Math、Array、String、Date、Global、Function、Json等等 |
几个基础类型还有Date,Math,JSON |
math、date、string、array、object、number、boolean、regexp、function、error、error.prototype、promise、promise.prototype、map、set、weakmap、weakset、symbol、proxy、proxy.prototype和reflect |
1.Map |
第11天 简要描述下JS有哪些内置的对象
The text was updated successfully, but these errors were encountered: