Chuck Liu
Chuck Liu
很清晰的文章! 我也是有同样的疑惑:到底UI render是在哪执行的? 博主您给出的[HTML规范链接](https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model)里面的这部分内容我反复读了,但是`Processing model`的第5点Update the rendering之后说的` run the resize steps`、` run the scroll steps`这些步骤是什么意思呢?不可能每次microtask执行完就resize和scroll吧,所以请问博主你看懂这块了吗?
@creeperyang 嗯,我当时的表示有误,我问的意思是执行完所有的microtask之后执行的Update the rendering,不是说单独执行一个之后立马执行run the resize steps/run the scroll steps。我当时描述不准确,不好意思把你引入到了莫名的关注点上面去了。 我当时一开始没看懂,为什么Update the rendering竟然去执行resize窗口和scroll窗口。不可能每次task执行完,然后清空完microtask队列之后就让屏幕resize/scroll一次吧。所以评论了一开始的内容。 最近仔细看了一下[run the scroll steps](https://drafts.csswg.org/cssom-view/#scrolling-events)不是scoll窗口,每次我们scoll的时候视口或者dom就已经立即scroll了,并把document或者dom加入到 [pending scroll event targets](https://drafts.csswg.org/cssom-view/#pending-scroll-event-targets)中,而run the scroll steps具体做的则是遍历这些target,在target上触发scroll事件。 [run the resize steps](https://drafts.csswg.org/cssom-view/#run-the-resize-steps)也是相似的,这个步骤是触发resize事件。 至于后续的[media query](https://drafts.csswg.org/cssom-view/#evaluate-media-queries-and-report-changes),...
Recently I'm working on another Vue 2.0 project: [leetcode-viewer](https://github.com/Ma63d/leetcode-viewer). If you just need an Vue 2.0 example, [leetcode-viewer](https://github.com/Ma63d/leetcode-viewer) and [the demo](https://ma63d.github.io/#/source/1) may be a candidate. In view of the current...
@fizerkhan could not very useful?
I understand your needs. But the blog is created just for personal presentation. If I upgrade it to an multi-user blog, the total blog need to be fully changed and...
Thx @Hellowor1d . Migration of Koa 2.x is important but not difficult. The next version will both upgrade Vue, koa and use SSR.
@sfyr111 已经在抽空升级了,可以查看 `v2` 分支。server 端改动了一下,升级了 koa v2, 重新设计了一下代码逻辑,加入了评论功能,封装了 schema 层和加入了切面编程。前端也还在改。admin 部分的 vue v2改造还没完成。最近入职新的实习公司,忙成猪头,最近怕是没时间再改了,只能后续再加油。 目前的升级计划如下: - 升级 vue 全家桶至2.x版本 - 升级 koa 至2.x版本 - 升级 webpack 至2.x版本 - 增加服务器端渲染( SSR )...
@jixianu check 是单纯用来测试 [带了 token 的话是否能通过外部 mw.verify_token 的检查正确抵达业务逻辑],确实是单纯 debug 用的,因为上线之后也依然用这个接口进行测试了一下。所以就在 master 分支里保留了。最近升级 v2 分支时已经干掉了。 建议不要看 master 分支的代码,最开始写的时候,写的很急,几乎所有的逻辑都在 controller 层,model 层实则只是个输出 ORM 的摆设。业务报错、校验等逻辑都没有切分。controller层又重又乱。 v2 分支改善了这些问题。 但是 v2 分支最近只是改完了 server 部分和 一些...
@Thinking80s 正文中有这个链接