wx.getSavedFileInfo的参数说明
Page({
data: {
filePath:""
},
onLoad: function(){
let filePath = wx.getStorageSync("filepath") || ""
this.setData({
filePath
})
if (filePath){
wx.getSavedFileInfo({
filePath: filePath,
success: function(res){
console.log("savedFileInfo:",res)
}
})
}
},
…(省略部分代码)
})