小程序中ajax返回数据,请问在小程序中如何从请求success中将数据返回给对象data?…
我的代码如下:App({ data: { posts: {} }, onLaunch(event) { // console.log('onLaunch'); var that = this; swan.request({ url: 'http://www.sfatpaper.com/content.json', success: function (res) { console.log(res.…