企业微信的自建应用 wx.previewFile is not a function

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:05 2618 0 全屏看文

AI助手支持GPT4.0

企业微信的自建应用 wx.previewFile is not a function
问题类型 API/组件名称 终端类型 微信版本 基础库版本
Bug wx.previewFile 微信安卓客户端 3.0.25 1.6.0
wx.previewFile({    url: filePreFix+item.filePath,     // 需要预览文件的地址(必填,可以使用相对路径)    name: item.fileName,       // 需要预览文件的文件名(不填的话取url的最后部分)    size: item.fileSize         // 需要预览文件的字节大小(必填)});


不能预览文件!

Problem type API / component name terminal type wechat version basic library version bug wx.previewFile Wechat Android client 3.0.25 1.6.0 wx.previewFile ({ url: filePreFix+ item.filePath , / / the address of the file to be previewed (required, relative path can be used) Name: item.fileName , / / the file name of the file to be previewed (the last part of the URL if not filled in) size: item.fileSize //The byte size of preview file is required (required)}; cannot preview file! Code fragment application of Guangdong forest manager

回答:

企业微信运营专员-千夜:

您好,一般调用接口报错没有该功能的可能是js文件引入方式不对,请问是否是通过script标签在线引入的js1.2.0文件呢

-EOF-

AI助手支持GPT4.0