- 请问现小程序打开文档 右上角的菜单隐藏显示文档更新了吗?
发现小程序打开文件预览右上角菜单没了,请问设置的文档更新了吗?
2020-03-21 - wx.downloadFile指定路径下载的话,安卓系统正常,IOS系统失败?
onTextTap(event){ var posturl = this.comp('attachmentImageData').getValue('previewImageUrl'); console.log(posturl); var row = this.comp('restData').getCurrentRow(); var currenttype = this.comp('restData').getValue('fwjlx'); var zlname = this.comp('restData').getValue('fziliaomc'); console.log(zlname + currenttype); wx.downloadFile({ url:posturl, filePath: wx.env.USER_DATA_PATH + zlname + currenttype, header: { 'content-type': 'application/json' }, fail: function (msg) { console.log('失败') }, success:function(res){ var resPath = res.filePath; console.log(res.filePath); wx.openDocument({ filePath: resPath, success:function(res){ console.log('打开文档成功') }, error: function(msg) { console.log(msg) } }) } }) } [图片]
2020-03-10