wx.openEmbeddedMiniProgram半屏跳转小程序报错

小程序 文章 2022-04-01 10:00 3044 0 全屏看文

AI助手支持GPT4.0

wx.openEmbeddedMiniProgram半屏跳转小程序报错wx.openEmbeddedMiniProgram half-screen jump to applet error

wx.openEmbeddedMiniProgram半屏跳转小程序报错
框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug Android 安卓8.1.0 华为P20pro 8.0.3

点击按钮,通过wx.openEmbeddedMiniProgram半屏跳转小程序时无反应,打开控制台查看报错,报错信息如下:

wx.openEmbeddedMiniProgram is not a function

另外app.jsonembeddedAppIdList字段中已声明需要半屏跳转的小程序,且半屏跳转的小程序已通过审核;


按官方文档所属如果版本库过低应该是以跳转方式打开,而不应该是直接报错;

Framework type problem type operating system operating system version mobile phone model wechat version applet bug Android Android 8.1.0 Huawei p20pro 8.0.3 click the button and click Wx There is no response when openembeddedminiprogram jumps to the applet on half screen. Open the console to check the error message. The error message is as follows: Wx Openembeddedminiprogram is not a function app The embedded appidlist field of JSON has declared the applet that needs half screen jump, and the applet that needs half screen jump has passed the review; If the version Library of the official document is too low, it should be opened by jumping instead of directly reporting an error;

回答:

每天的下午茶由软公子买单:

wx.xxxx.is not a function 问题一般是该API需要固定版本以上的基础库才支持,而你的基础库版本过低。基础库里没有这个API就会报这个错

拾忆:

Mr.Joe:这个文档在哪,能否发下链接

-EOF-

AI助手支持GPT4.0