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>