收藏
回答

微信小程序使用wx.openDocument在手机端和模拟器上都能打开xlsx文件 但是在pc端打不

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug openDocument 工具 3.9.6 2.32.3



wx.openDocument({

                          filePath: 'https://examine.ccckjn.net/weixin/' + fileName,

                          fileType: 'xlsx',

                          showMenu: 'true',

                          success: function () {

                            console.log('打开文档成功1')

                            resolve(res)

                          },

                          fail: function () {

                            console.log('打开失败1')

                          }

                        })


回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容