小程序打开pdf

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

  

猜你喜欢

转载自www.cnblogs.com/chenlw/p/9930437.html
今日推荐