Problems encountered in the development vue

1. The implementation issues of data exchange, resource projects before applying the angular modules think.

Background interactive changed axios from Resource-VUE
https://github.com/pagekit/vue-resource
https://github.com/axios/axios

2.axios how the introduction of vue

By way of inheritance

https://zhidao.baidu.com/question/1695426870653534748.html

3.Vue.js pictures reference path

Alternatively http://www.jb51.net/article/119782.htm(v-for v-repeat)

4. The two navigation routes id has changed, but the same data page

  Monitoring $ route, monitoring '$ route' watch with a change method


The cause an intermittent overlapping routes

    Not add '/'

 

6. Navigation bar style
     jquery introduction, the original script code is not $ explosion, mounted an improved method of vue

 

7.轮播图
  (bootstrap.css/js、bootstrap-theme.css、fonts)

8.vue in $ index $ key has been removed, (item, index) in items

https://www.cnblogs.com/mzzz/p/6382590.html(应用首页美食class的判断)
首页美食跳转到美食详细页
https://www.vue-js.com/topic/5a24b53df4eae0865305a330
getFoodsId() =》 console.log(this.$route.query.fid)

导航栏页面有数据又报错for()改成for...in就可以了

9.router-link :to="{path:‘pathname‘,query: {key:value}}"

跳转过去的地址格式就是(http://…/pathname?key=value)
value作为一个变量可以在data里面定义

10.路径问题
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:8080/meishi/static/css/common.css".

 

 

 

https://www.jianshu.com/p/5b10632b8bc4

http://jiongks.name/blog/just-vue/

Guess you like

Origin www.cnblogs.com/lgyong/p/8538846.html