- 微信二位码登录Iframe嵌套跳转被拦截:lacks the 'allow-same-origin'
参考教程:https://developers.weixin.qq.com/community/develop/doc/000860f9f88b28fae761bf13e61000?highLine=allow-same-origin 最终解决了问题,请求你们这两天是否在服务器配置中去掉了‘allow-same-origin’,什么原因导致请给予一个回复,非常感谢!
2024-04-26 - 动态slot不生效
https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/dynamic-slots.html 封装了一个组件 dev-list ,全局注册使用。 dev-list 组件内代码示例 js Component({ options:{ // multipleSlots: true, dynamicSlots:true }, properties: { }, data: { list: [1,2,3], }, methods: { }, lifetimes: { // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 attached: function () { }, }, }); json { "component": true, "usingComponents": { }, "componentFramework": "glass-easel" } wxml <block wx:for="{{ list }}" wx:key="index"> <slot list-index="{{ index }}" item="{{ item }}" /> </block> 在页面中使用这个组件代码示例 wxml <dev-list> <view slot:item="{{item}}">{{item}} </view> </dev-list> slot:item 直接在编译器中报红,并且没有任何渲染,开发工具中给出提示说,重复使用了slot,这个动态slot 本身不就是要重复使用的吗? [图片]
2023-09-21