vue
Shmily_zc
学无止境
展开
-
警告!!!You are using the runtime-only build of Vue where the template compiler is not available. Eithe
局部组件的组件的声明时会有这个 : You are using the runtime-only build of Vue where the template compiler is not available. Either pre警告 解决办法 配置项目 在项目的根目录下建立一个vue.config.js 然后把这段代码贴上去: module.exports = { config...原创 2020-04-26 21:20:39 · 175 阅读 · 0 评论 -
接上篇(摸到vue门槛后再进阶)组件,生命周期钩子函数,vue脚手架
一、组件 页面中的一部分,可以复用, 本质上是一个拥有预定义选项的一个 Vue 实例 1.组件的定义和使用 全局组件的定义 Vue.component("组件的名字",{ template:"<div>组件模版的内容</div>" template 必须有 })组件的使用 局部注册组件的定义 (常用)...原创 2020-04-26 21:15:14 · 124 阅读 · 0 评论