摘要:
main.js 设置路由的路径path:"/edit/:id" <router-link v-bind:to="'/edit/'+data.id">编辑</router-link> load:function(id){ console.log(id) this.$http.get("http://j 阅读全文
摘要:
二、方发之间的区别: 1、PUT和POST PUT和POS都有更改指定URI的语义.但PUT被定义为idempotent的方法,POST则不是.idempotent的方法:如果一个方法重复执行 多次,产生的效果是一样的,那就是idempotent的。也就是说: PUT请求:如果两个请求相同,后一个请 阅读全文
摘要:
注意click需要传入当前的id值 deletes:function(id){ this.$http.delete("http://jsonplaceholder.typicode.com/users/"+id). then(function(data){ console.log(data) thi 阅读全文
摘要:
1,在父组件<v-user v-bind:meaage="test"></v-user> 此时会报错,test要在返回值里面去声明 return {msg: 'Welcome to Your Vue.js App', test:"" } 在子组件里用props:["message"]接收 expor 阅读全文