微信小程序onLode函数之success
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部分哪里写错啦,小弟在此先谢过大家啦!