網(wǎng)上看過很多文章,都說js引擎最先創(chuàng)建了Object.prototype,然后創(chuàng)建了Function.prototype,這樣接下來就可以創(chuàng)建Object構(gòu)造函數(shù)和Function構(gòu)造函數(shù)了。而Object.prototype和Function.prototype又都是簡單對象,Object.prototype的constructor屬性又指向Object構(gòu)造函數(shù)。Function構(gòu)造函數(shù)的constructor屬性又指向它自身,就是說Function自己創(chuàng)建了自己。如何理解這四個東西創(chuàng)建的時機順序?最好能給出ES規(guī)范的原文
Object.prototype和Function.prototype是如何被創(chuàng)建出來的?
繁星淼淼
2018-10-19 15:14:11