wx.getSavedFileInfo(OBJECT) 调用方法失败
var that=this;
var obj=that.data.path;
for(var i=0;i<obj.length;i++){
console.log(obj[i].filePath);
wx.getSavedFileInfo({
filePath: “obj[i].filePath”,
success: function(res) {
console.log(res.size)
console.log(res.createTime)
},
fail:function(){
console.log(“fail”)
}
})
}
console.log(obj[i].filePath);能显示出路径,但是走到这个 wx.getSavedFileInfo永远是fail,为什么呢;