- URL.createObjectURL 图像长按保存时其上浮动的元素也被截取了,为何?
URL.createObjectURL 图像长按保存时其上浮动的元素也被截取了 ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="https://unpkg.com/@zumer/snapdom@1.9.14/dist/snapdom.min.js" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js" referrerpolicy="no-referrer"></script> <style> * { margin: 0; padding: 0; box-sizing: border-box; } .box { margin: 0 auto; width: 750px; position: relative; } .poster { font-size: 0; } .posterImg { width: 750px; height: 1334px; } .qrBox { position: absolute; right: 70px; top: 1122px; width: 120px; height: 120px; } .qrBox img { width: 100%; } .shareImg { position: fixed; width: 750px; height: 1334px; font-size: 0; } .shareImg img { width: 375px; } button { position: fixed; left: calc(50% - 100px); bottom: 50px; width: 200px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 10px; background-color: #2caff7; color: #fff; border: none; cursor: pointer; } .preview { position: relative; } .tip { position: fixed; z-index: 1; } </style> </head> <body> <div class="box"> <div class="poster"> <img src="p1.jpg" class="posterImg"/> <div class="qrBox"></div> </div> </div> <div class="preview"> <div class="tip">文字</div> <div class="shareImg"> <!-- <img :src="shareData" /> --> </div> </div> <button id="btn">snap</button> <script> function xx() { snapdom.toCanvas(document.querySelector('.poster'), { fast:false, }).then(blob => { // mock vue update let data = blob.toDataURL('png') let img = `<img src="${data}" />` $('.shareImg').html(img) $('.box').hide() }) } $(function () { new QRCode(document.querySelector('.qrBox'), { text: "123", width: 128, height: 128, }) $('#btn').click(function () { snapdom.toBlob(document.querySelector('.poster'), { fast:false, type: 'png' }).then(blob => { // mock vue update let data = URL.createObjectURL(blob) let img = `<img src="${data}" />` $('.shareImg').html(img) $('.box').hide() }) }) }) </script> </body> </html> ```
10-16 - SharedArrayBuffer 报错?
[图片] [图片] [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
10-13 - 没有找到公众号权限集 100 是什么?
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/offical_account_authority.html 这里提到的权限集 100 在上面文档里没有找到 100, 请问这里 100 具体是指什么? [图片]
09-08 - 认证订阅号菜单如何才能支持外链?
认证订阅号菜单如何才能支持外链
06-24 - 公众号图文订阅通知能否区分不同的来源?
用户在图文点击订阅通知后,微信会通过事件推送把用户订阅操作通知给开发者服务器,问题时假设我们的图文每期会不同的推出, 显然每期图文不可能都重新申请一个新的订阅模版(公众号限制了最多50个), 如果重复使用同一个模版,那每期的内容却又无法区分开, 因为推送事件的消息体内也没有区分标记 (PopupScene 也不适合,应为只有1和2), 感觉太鸡肋的功能,为何图文插入订阅组件时不能自定义一个标记随着事件通知一起传递给开发者,这样就可以区分开区分推送不同的消息内容给用户 对应文档: https://developers.weixin.qq.com/doc/offiaccount/Subscription_Messages/api.html#%E4%BA%8B%E4%BB%B6%E6%8E%A8%E9%80%81
04-01 - 订阅通知插入图文为什么不能支持自定义场景?
假设先后有多篇图文插入了订阅通知组件, 想要区分下不同的来源图文, 如何实现? 目前看是没办法区分的
2024-09-14 - 认证提交何时结束?
已提交公众号认证,2天了,还没通过,需要几天?gh_fe6998767d4f
2024-08-29 - 为什么不能把手机号获取权限单独授权给第三方应用?
小程序原有的后台服务已无法更新维护了,此时想通过开发一个第三方应用通过授权获取到小程序的授权access_token, 避免覆盖原有服务的access_token,但发现要使用第三方应用,必须要授权“小程序开发与数据分析” 才可以(待验证,见截图) [图片] 但这个权限影响太大了,其中涉及到版本上传审核、发布等, 为什么不能对于这样需要服务端api请求接口参与的单独给与授权, 非要包含到一个大的权限里去!
2024-07-16 - 如何把图文发布后不出现在公众号文章列表里,同时可以拿到图文链接?
如何把图文发布后不出现在公众号文章列表里,同时可以拿到图文链接?
2024-05-09 - 公众号文章内一屏内容包含多个二维码时,长按识别二维码位置错误?
公众号文章内一屏内容包含多个二维码时,长按识别二维码结果时常触发的临近位置的二维码, 解析结果位置错误, 这是何原因?
2024-03-25