Vue精彩案例、教程

vue.js获取url参数的方法

2018-07-25  本文已影响33人  践道修行者

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

created() {
    const name = this.$route.query.name    
}
上一篇 下一篇

猜你喜欢

热点阅读