JIT vs AOT
在玩Angular时候,会遇到这两个编译方式AOT,JIT,但是玩React时却不提及,难道是NG所独有的?当然No,玩java也会提及JIT。这里就聊下两者区别。
如有错误,欢迎斧正。
上定义
这里取Angular上的一段解释说明。
JIT:just-in-time
Just-in-Time (JIT), which compiles your app in the browser at runtime.
AOT: ahead of time
Ahead-of-Time (AOT), which compiles your app and libraries at build time.