美文网首页Vue精彩案例、教程
vue.js获取url参数的方法

vue.js获取url参数的方法

作者: 践道修行者 | 来源:发表于2018-07-25 16:13 被阅读33次

    通过this.$route.query.参数名 获取

    created() {
        const name = this.$route.query.name    
    }
    

    相关文章

      网友评论

        本文标题:vue.js获取url参数的方法

        本文链接:https://www.haomeiwen.com/subject/qcapmftx.html