vue
前端boy
哈喽喽
展开
-
VUE引入自定义组件的方法
第一步:引入组件 import Wert from "../components/HelloWorld.vue"; 第二不:挂载组件 components: { "v-wert": Wert} 第三步 使用 <v-wert></v-wert>原创 2020-06-15 20:15:10 · 2077 阅读 · 0 评论 -
VUE请求数据的方法
第一步 cd 到项目目录安装插件 npm install vue-resource --serve 第二步 找到项目目录下面的 main.js 引入 :import VueResource from 'vue-resource'; Vue.use(VueResource); 第三步 { // GET /someUrl this.$http.get(’/someUrl’).the...原创 2020-04-21 13:21:35 · 580 阅读 · 0 评论