[vue]獲取url參數

/store.vuevue

  • console.log('ticket:'+this.ticket) 這種的話/store要props,/不須要props
  • console.log(this.$route.query.ticket) 這種必定獲取到。
相關文章
相關標籤/搜索