微信小程序 wx.uploadFile API 报错
uploadFile:fail Cannot read property '0' of null
send: function(){
wx.uploadFile({
url: '*.php',
filePath: this.data.src,
name: 'image',
success: function(res){
// console.log(res.data)
this.setData({
carData: res.data
})
}
})
}
本文网址:http://www.91bianli.com/kaifazhinan/71680.html