weixin_44579391
2019-02-18 17:47console.log(res.data); 输出值为 undefinde
var authorid = wx.getStorageSync('CuserInfo').id;
var ApiUrl = Api.readablecount + '?AuthorId=' + authorid;
Api.fetchGet(ApiUrl, (err, res) => {
console.log(res.data);
this.setData({
count: res.data
});
})
api返回值页面
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</int>
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- async 和 await里面怎么套个promise就不行了
- vue.js
- javascript
- 2个回答
- VUE TypeError: Cannot read property 'site' of undefined
- vue.js
- javascript
- 2个回答
- $ _POST从ajax req为空
- ajax
- multipartform-data
- php
- 1个回答
- 刚开始接触vuex,login.vue文件中this.$store.state.token,总是报错——无法解析$store
- javascript
- jquery
- ajax
- vue.js
- 1个回答
- 分页排序只排当页数据,有没有什么办法可以让把所有的数据都排上?下面放代码,求大佬指导参考
- spring
- maven
- vue.js
- javascript
- java
- 4个回答
换一换