VueJS 取得URL参数
2016-12-27 本文已影响1229人
DongRw
vuejs取得URL中参数的值
地址:http://localhost:3333/#/index?id=001
结果:001
console.log(this.$route.query.id)
vuejs取得URL中参数的值
地址:http://localhost:3333/#/index?id=001
结果:001
console.log(this.$route.query.id)