首页 > 其他 > 详细

Vue 方法

时间:2018-03-31 12:26:31      阅读:162      评论:0      收藏:0      [点我收藏+]

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;
            })

        },

 




边写边记

Vue 方法

原文:https://www.cnblogs.com/wlphp/p/8681580.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!