通过this.$route.query.参数名 获取
如
created() {
const name = this.$route.query.name
}
通过this.$route.query.参数名 获取
如
created() {
const name = this.$route.query.name
}
本文标题:vue.js获取url参数的方法
本文链接:https://www.haomeiwen.com/subject/qcapmftx.html
网友评论