weixin_44579391
weixin_44579391
2019-02-18 17:47

console.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条回答