2025年4月8日 问题依然存在
OffscreenCanvas 使用相同 src 创建的 Image 仅触发一次 onload 事件复现方式: 调用 OffscreenCanvas.createImage() 创建 Image 实例,并给 Image.src 赋值,onload 能够正常被调用;再重复上述步骤,并给新的 Image 赋予同样的的 Image.src,onload 不会被执行。其他信息: 上述表现与在屏 Canvas 不同,Canvas.Image 总是会调用 onload上述表现在微信开发者工具中不会出现
04-08同问,请问楼主是否已经解决
如何引入第三方库的子目录?import dayjs from 'dayjs' import weekday from 'dayjs/plugin/weekday' 引入dayjs没问题,但是引入dayjs/plugin/weekday会报错:Error: module 'pages/calendar/dayjs/plugin/weekday.js' is not defined, require args is 'dayjs/plugin/weekday' 目测是开发工具把这个当成引入相对于当前页面路径的文件了,要怎么做才能正确引入 node_modules/dayjs/plugin/weekday ?
03-27这个头像是临时文件路径 需要使用wx.uploadFile 上传到服务器使用网络图片进行加载 因为这个临时路径第二次就不一定在本机存在了
一个有关于微信头像获取的问题?用户成功登陆之后跳转设置头像昵称页面,完成后在“我的”页面能正常查看用户头像,但是退出重新登陆之后在“我的”界面,头像加载失败,并且控制台报错 “Failed to load image http://127.0.0.1:59574/__tmp__/QxU8NOpzTvlIab8a06762f5142f34d04c1b699692ebf.jpeg”,但是在我存储数据的时候以及数据库中tmp左右是没有下划线的
2023-09-05可以在data里面加个标识 第一次onHiden 记录一下 第二次onShow 直接判断就可以 直接break应该就可以实现了 不过很想知道为什么需要在新页面进来就跳转打开位置 直接在外面不可以调api吗?
wx.openLocation API调用后,点击左上角返回按钮为什么要点击两次才能到上一个页面?API:wx.openLocation 微信版本号:8.0.40 基础库版本号:2.33.0 问题:从webview页面点击导航,跳转到小程序页面,在小程序页面中调用wx.openLocation打开地图后,再点击左上角返回,需要点击两次才能返回到上一个页面,怎么才能一次点击返回上一个页面呢? onLoad() { wx.openLocation({ latitude: 32.409696853318, longitude: 119.41627380336764, name: "测试", }) }
2023-08-07 const {buffer} = await cloud.openapi.wxacode.getUnlimited(bodyData) const imgBuffer = new Buffer.from(buffer); const imgBase64 = imgBuffer.toString('base64') const dataImagePrefix = `data:image/jpeg;base64,` const qrCodeImg = `${dataImagePrefix}${imgBase64}`
图片二进制转成base64,arrayBufferToBase64这用什么替代?拿到图片二进制,转不成图片,狗日的智障腾讯又把这个函数废弃了,使用就会报错,网上查了好多自己转换的都不能用。
2023-08-04是不是url里面有#号, #会影响微信侧接收参数 且url参数顺序一定要按照要求
微信网站应用白名单已经加过了本体调试不行放到正式上也不行提示redirect_uri 参数错误求解?[图片]
2023-07-28目前所有客户端和开发工具朋友圈"单页模式"在基础库在大于2.17.0之后都会出现这个bug,出现的位置都是在使用websocket的api时出现的
APP-SERVICE-SDK:lanDebug:fail rejected due?Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (https://lib/WASubContext.js:2:2038387) 各位大神,这个是什么错误
2021-08-24请问这个问题已经恢复了吗?
基础库2.17.1打开朋友圈分享的单页模式报错?在开发工具中使用2.17.1打开单页模式时报错, 但用2.17.0及以前的基础库都可以正常打开. 手机信息: [图片] 报错信息: [图片]
2021-08-02我遇到的情况是这样的,我做的是一个商家的宣传页小程序,通过不同id来获取商家信息,当小程序从顶部发现栏直接打开会进入一个默认的商家,同时我们会有一个切换关注的功能,这时候是没有任何问题的,分享小程序卡片到聊天,从聊天进入 我一开始是判断AppShow生命周期里的option的query参数,当每次打开的时候参数不同则切换商家信息,这是为了解决当小程序在后台时从分享打开非当前商家时无法自动切换商家信息,但是这样就有一个新的问题,当我从关注切换商家时如果小程序进入了后台再次回来重新执行了APpShow就会切换到一开始打开的那个商家,
小程序从手机后台调用,怎么清除options的值?通过扫码进入小程序,获取options.q的值,将小程序切到手机后台数小时后,通过手机后台进入小程序,仍然会加载options.q的值,这个值怎么清除呢??
2021-07-222.17.3之后的基础库都会出现这个问题 之前没有这样的问题出现 VM1185:5 app.js错误: Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1 at Array.forEach (<anonymous>) at E (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at D (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Function.use (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.module.exports (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.290 (app.js?t=wechat&s=1625020877563&v=523f8e0fb29dd54b4a17a1ba29af21bf:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0) (anonymous) @ VM1185:5 doWhenAllScriptLoaded @ VM1184:1775 scriptLoaded @ VM1184:1795 (anonymous) @ VM1184:1820 (anonymous) @ VM1038 WAService.js:2 r @ VM1038 WAService.js:2 Promise.then (async) a @ VM1038 WAService.js:2 e.exports @ VM1038 WAService.js:2 X @ VM1038 WAService.js:2 oe @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 Promise.then (async) (anonymous) @ VM1038 WAService.js:2 j @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 (anonymous) @ VM1184:1846 (anonymous) @ VM1184:1850 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM1175:1 t.loadScripts @ VM8 asdebug.js:1 loadAppService @ VM8 asdebug.js:1 messagerCallback @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 f @ VM8 asdebug.js:1 g @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 _ws.onmessage @ VM8 asdebug.js:1 VM1038 WAService.js:2 Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1 at Array.forEach (<anonymous>) at E (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at D (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Function.use (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.module.exports (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.290 (app.js?t=wechat&s=1625020877563&v=523f8e0fb29dd54b4a17a1ba29af21bf:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0) errorReport @ VM1038 WAService.js:2 thirdErrorReport @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 v @ VM1038 WAService.js:2 o @ VM1038 WAService.js:2 c @ VM8 asdebug.js:1 r @ VM8 asdebug.js:1 window.onerror @ VM1029:1 doWhenAllScriptLoaded @ VM1184:1775 scriptLoaded @ VM1184:1795 (anonymous) @ VM1184:1820 (anonymous) @ VM1038 WAService.js:2 r @ VM1038 WAService.js:2 error (async) t.default @ VM1029:1 (anonymous) @ VM1029:1 n @ VM1029:1 (anonymous) @ VM1029:1 (anonymous) @ VM1029:1 VM1038 WAService.js:2 Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1 at Array.forEach (<anonymous>) at E (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at D (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Function.use (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.module.exports (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1) at Object.290 (app.js?t=wechat&s=1625020877563&v=523f8e0fb29dd54b4a17a1ba29af21bf:1) at a (bundle.js?t=wechat&s=1625020877563&v=701c0556890524446f9aece87a244f64:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0) errorReport @ VM1038 WAService.js:2 thirdErrorReport @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 v @ VM1038 WAService.js:2 o @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 value @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 doWhenAllScriptLoaded @ VM1184:1775 scriptLoaded @ VM1184:1795 (anonymous) @ VM1184:1820 (anonymous) @ VM1038 WAService.js:2 r @ VM1038 WAService.js:2 error (async) (anonymous) @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 (anonymous) @ VM1038 WAService.js:2 VM8 asdebug.js:1 @appservice-current-context VM1038 WAService.js:2 Page "pages/article-detail/article-detail" has not been registered yet. VM1201 WAService.js:2 Error: APP-SERVICE-SDK:lanDebug:fail rejected due to no permission currently at Object.lanDebug (VM1038 WAService.js:2) at apihook.js?t=wechat&s=1625020877563&v=ecf7ef5c71b1d8db71da9b0f3ffd45cc:1 at e.exports (apihook.js?t=wechat&s=1625020877563&v=ecf7ef5c71b1d8db71da9b0f3ffd45cc:1) at window.__passWAServiceGlobal__ (apihook.js?t=wechat&s=1625020877563&v=ecf7ef5c71b1d8db71da9b0f3ffd45cc:1) at n.__passWAServiceGlobal__ (VM8 asdebug.js:1) at __waServiceInit__ (VM1038 WAService.js:2) at __doWAServiceInit__ (VM1038 WAService.js:2) at VM1038 WAService.js:2 at VM1038 WAService.js:2(env: Windows,mp,1.05.2105170; lib: 2.17.0) errorReport @ VM1201 WAService.js:2 thirdErrorReport @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 v @ VM1201 WAService.js:2 o @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 value @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 error (async) (anonymous) @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2 (anonymous) @ VM1201 WAService.js:2
小程序分享到朋友圈进入 APP-SERVICE-SDK报错?测试小程序分享到朋友圈功能 从朋友圈分享的小程序卡片进入小程序报错 VM297:1 MiniProgramError APP-SERVICE-SDK:getExtConfigSync:fail rejected due to no permission currently Error: APP-SERVICE-SDK:getExtConfigSync:fail rejected due to no permission currently at Object.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:1743669) at < at wx.getExtConfigSync> at Object.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:120602) at setExtData (http://127.0.0.1:22159/appservice/utils/appBase/appBase.js:65:44) at Object.appLaunch (http://127.0.0.1:22159/appservice/utils/appBase/appBase.js:18:3) at ve.onLaunch (http://127.0.0.1:22159/appservice/app.js:56:13) at ve.I.t.onLaunch (http://127.0.0.1:22159/appservice/utils/ald-stat.js:134:70) at ve.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:2013540) at new ve (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:2014296) at Function.<anonymous> (http://127.0.0.1:22159/appservice/__dev__/WAService.js:2:2014608)
2021-06-30