微信小程序onLode函数之success
发布于 5 年前 作者 mtang 10145 次浏览 来自 问答

onLoad: function (options) {

wx.request({

url: http://localhost:80/shome/server/s1.php,//器地址

data: {

s1: [

{date: ‘’},

{where: ‘’},

{jiner: ‘’}

]

},

header: {

‘content-type’: ‘application/json’

},

success: function (res) {

console.log(res.data)

s1.date=res.data.date;

s1.where=res.data.where;

s1.jiner=res.data.jiner;

}

})

},

请各位大神指导一下,success部分哪里写错啦,小弟在此先谢过大家啦!

回到顶部