vue2.0 如何通过本地json文件模拟后台数据接口

来源:互联网 发布:手机淘宝好友如何查看 编辑:程序博客网 时间:2024/06/05 14:08

放在static文件下下面然后用get方式请求就好

getNum(){          this.$http.get('static/member.json').then(res=>{              console.log(res.data)          })


阅读全文
0 0
原创粉丝点击