wx.downloadFile({
        url:"https://xxxxxx.pdf",
        success(res){
          console.log(res)
          let data = res.tempFilePath;
          wx.openDocument({
            filePath:data,
            fileType:'pdf'
          })
        }
      })

  

posted on 2018-11-08 17:28  chenlw101  阅读(2049)  评论(2编辑  收藏  举报