JavaScript/vue.js/defineAsyncComponent:修订间差异
来自康健生活
| 第50行: | 第50行: | ||
}) | }) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
在使用时直接引入。 | |||
<syntaxhighlight lang="javascript"> | |||
const Select = defineAsyncComponent(async () => await import(/* selecct component by es url*/)) | |||
</syntaxhighlight> | |||