vue createApp
时间: 2023-09-08 20:11:18 浏览: 199
create-vue-app
createApp是Vue.js 3中的一个全局函数,它用于创建一个应用程序实例。这个函数实际上是通过调用createAppAPI返回的createApp函数来完成的。在createApp函数中,它会将app对象备份到context.app中,并对config属性进行拦截,使得config属性只能被获取而不能被设置。除此之外,createApp还定义了一些方法,包括use、mixin、component、directive、mount、unmount、provide和runWithContext。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [[vue3] CreateApp实现](https://blog.csdn.net/aXin_li/article/details/131283007)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Vue基础笔记](https://blog.csdn.net/weixin_68915174/article/details/127861473)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文