收藏
回答

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,为什么呢;

   


回答关注问题邀请回答
收藏

2 个回答

  • 洋葱头
    洋葱头
    2017-04-15

    输出下fail的信息看下为什么

    2017-04-15
    有用
    回复
  • Melin00
    Melin00
    2017-04-15

    你保存文件到本地没?

    wx.saveFile(OBJECT)


    2017-04-15
    有用
    回复
登录 后发表内容