摘要: 一篇关于 runtime 的文章,很有意思: https://medium.com/@gemma.stiles/understanding-the-javascript-runtime-environment-4dd8f52f6fca 阅读全文
posted @ 2022-03-28 14:37 _王宁宁 阅读(33) 评论(0) 推荐(0)
摘要: 转变认知 setTimeout 可能是很多前端工程师爱用的方法,它可以使得一段代码延迟执行,例如: setTimeout(() => console.log('A'), 1000); // 在1秒后打印出'A' 不过我们的理解可能在某些时候遭遇挑战,假定有如下代码: for (var i = 0; 阅读全文
posted @ 2022-03-28 11:13 _王宁宁 阅读(174) 评论(0) 推荐(0)