本地对象,内置对象,宿主对象

4.3.6native object

object in an ECMAScript implementation whose semantics are fully defined by this specification rather than by the host environment

NOTEStandard native objects are defined in this specification. Some native objects are built-in; others may be constructed during the course of execution of an ECMAScript program.

4.3.7built-in object

object supplied by an ECMAScript implementation, independent of the host environment,that is present at the start of the execution of an ECMAScript program

NOTEStandard built-in objects are defined in this specification, and an ECMAScript implementation may specify and define others. Every built-in object is a native object. A built-in constructor is a built-in object that is also a constructor.

4.3.8host object

object supplied by the host environment to complete the execution environment of ECMAScript

NOTEAny object that is not native is a host object.


以上是标准文档所描述


本人理解:

Native Object:像Object,Function,Array,Date等,在chrome调试器中打印如:


buid-in Object:像全局对象和Math这种不属性BOM或者DOM对象的为内置对象:



host object :像这种BOM和DOM这种由浏览器实现为宿主对象。


有个疑问:我们自定义的对象,属于host对象吗?

我觉得不是,因为host对象由host环境提供。不知道对不对,请知道的朋友分析下。


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值