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>

调试: api接口是否有效返回json数据 你提供的接口反回的是这个 The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

我之前写小程序的时候,调接口也是遇到这样的问题,不过我的是再加一个data就好了 console.log(res.data.data);

数据库可读权限开了吗