- ios调用wx.openDocument无法打开.xls和.pptx结尾的文件?
安卓手机打开都正常,ios无法打开.xls和.pptx结尾的文件,回调没有任何报错, [图片][图片][图片][图片] 代码片段: wx.downloadFile({ url: apiUrl + 'getproductattachment?token=' + getApp().globalData.token + '&attachmentId=' + e.currentTarget.dataset.item.attachment_id + '&attachmentName=' + e.currentTarget.dataset.item.attachment_name, // filePath: wx.env.USER_DATA_PATH + '/' + e.currentTarget.dataset.item.attachment_name, success: (res) => { console.log('downloadFile', res) const filePath = res.tempFilePath wx.openDocument({ filePath: filePath, showMenu: true, // 是否显示右上角菜单 fileType: fType[fType.length - 1], success: (resp) => { console.log('分享成功', resp) }, fail: (err) => { console.log('分享失败', err) } }) } })
2021-09-26 - 打开第三方地图导航到达目的地之后小程序是否可以接收到导航结束事件?
希望能在导航结束返回小程序时做一些操作,不知道能不能捕捉到导航结束事件?
2021-03-10