【发布时间】:2017-10-19 18:43:45
【问题描述】:
我正在尝试使用类似这样的 url 调用查询搜索:
http://localhost/Stellar/public/api/companies?column=name&direction=desc&page=1
在 Vue Js 2.0 中尝试这样调用:
axios.get('$(this.source)?column=$(this.query.column)&direction=$(this.query.direction)$page=$(this.query.page)')
它看起来像这样
http://localhost/Stellar/public/$(this.source)?column=$(this.query.column)&direction=$(this.query.direction)$page=$(this.query.page)
它没有转换数据。帮我解决这个问题。
谢谢。
【问题讨论】:
标签: javascript vue.js vuejs2 axios