Vue中的网络请求

getInfo() { // get 方式获取数据   this.$http.get('请求连接').then(res => {     console.log(res.body);   }) }json 发送POST请求api postInfo() {   var url = 'http://127.0.0.1:8899/api/post';   // post 方法接收三个参数:   // 参
相关文章
相关标签/搜索