AOT中预编译是什么意思(Angular)
What is the meaning of pre-compiled in AOT (Angular)
我正在查看 AOT 的 Angular 文档。我看到 pre-compiled 这个词,但我无法理解它的意思。
Angular 文档中的行是:
With AOT, the browser downloads a pre-compiled version of the application.
Just-in-Time (JIT), which compiles your app in the browser at runtime.
Ahead-of-Time (AOT), which compiles your app at build time.
pre-compiled这个词意味着它已经被编译了,即你的AngularHTML和TypeScript代码编译成高效的JavaScript代码在交付之前的构建阶段本身并在浏览器中 运行。
我正在查看 AOT 的 Angular 文档。我看到 pre-compiled 这个词,但我无法理解它的意思。
Angular 文档中的行是:
With AOT, the browser downloads a pre-compiled version of the application.
Just-in-Time (JIT), which compiles your app in the browser at runtime. Ahead-of-Time (AOT), which compiles your app at build time.
pre-compiled这个词意味着它已经被编译了,即你的AngularHTML和TypeScript代码编译成高效的JavaScript代码在交付之前的构建阶段本身并在浏览器中 运行。