Vue 方法

axios

 axios.get("/api/show/" + this.$route.params.id).then(reponse => {

                console.log(reponse.data);
                this.list = reponse.data;
            })
 
子组键
components:{
            wlPhp
        }

页面自动加载方法

mounted() {
            console.log("APP开始!");
           axios.get("/api/show/" + this.$route.params.id).then(reponse => {

               console.log(reponse.data);
               this.list = reponse.data;
            })

        },

 

点击事件前置

@click.native.prevent="return false"

 




边写边记
posted @ 2018-03-31 11:50  万隆  阅读(170)  评论(0编辑  收藏  举报