wx.openDocument docx被自动转换为pdf?
发布于 4 年前 作者 rtan 2670 次浏览 来自 问答

wx.downloadFile({

					url: url,

					success(res2) {

						console.log(res2)

						wx.openDocument({

							filePath: res2.tempFilePath,

							fileType: 'docx',

							success() {

								that.toast('文件打开成功')

							},

							fail(ee) {

								console.log(ee)

								that.toast("文件打开失败:" + ee.errMsg)



							}

						})

					},

					fail(e) {

						that.toast("文件下载失败:" +url+ e.errMsg)

					}

				})
回到顶部