文件
wx.saveFile(object)
保存文件到本地
wx.chooseImage({
success: function(res) {
var tempFilePaths = res.tempFilePaths
wx.saveFile({
tempFilePath: tempFilePaths[0],//需要保存的文件的临时路径
success: function(res) {
//返回文件的保存路径
var savedFilePath = res.savedFilePath//文件的保存路径
},
fail/complete: function (res) {