poetries / browser-working-principle Goto Github PK
View Code? Open in Web Editor NEW极客时间浏览器工作原理 https://blog.poetries.top/browser-working-principle
极客时间浏览器工作原理 https://blog.poetries.top/browser-working-principle
请问你是原作者吗?我觉得原作者写这篇专栏还是挺辛苦的,况且人家收费也不贵,觉得你这样很不好
吃水不忘挖井人,不管别人支持不支持,放个李兵老师的链接吧,朋友
😏
端口是在url中标明的, 类似www.a.com:8080,
如果url中没有端口,则采用默认端口, http默认端口是80,https默认端口是443。
1、闭包
在您的文章中,闭包被描述在堆内存中,从内部函数EC的作用域链中,把用到的外层变量拷贝过来的一个对象。但是在我理解中,闭包应该是一个对作用域链的复用。即原本在调用栈的内部函数执行完被推出栈之后,内存回收会回收掉这个出栈的函数EC。但是因为该内部函数被返回到了外部储存了下来,所以这个外部储存的变量产生了对内部函数作用域链的引用(详细机制是通过函数定义时,私有属性保存的作用域),从而导致该被回收的没有被回收。
这个机制跟您说的那个机制仔细看是不同的,你说的那个存在一个拷贝值的过程,我说的这个,是对现有数据的复用。
2、在讲解v8如何运行js时,您有一张图描述了执行上下文是在生成AST之后,在解释之前生成的。因此,并没有具体讲解EC到底是Parser生成的,还是解释器的编译器生成的。
在我的理解中,Parser只用来生成AST,进入到解释器,就是代码运行阶段,会先编译生成EC和可执行代码(机器码),然后进入执行阶段,即机器码在EC中,被推入调用栈执行。
没找到评论的地方,提个issue吧,文章写的很好,但是这点赞数有点少啊
抄袭 https://time.geekbang.org/column/intro/100033601 极客时间李兵老师的课程,呼吁大家支持原创。原版也不贵
if (xhr.status = 200)
resolve(xhr.response)
查询了mdn script 标签上只有async 没有sync 这个属性呀
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.