wordpress - Gutenberg ServerSideRender 回调
问题描述
我正在尝试在服务器端渲染上触发回调函数:
edit: function( props ) {
return [
el( ServerSideRender, {
block: 'meetongo/meetup-slider',
attributes: props.attributes,
onChange: function( props ) {
console.log('hello world');
}
} ),
];
},
此方法用于PlayList块中,在我的情况下未触发。
解决方案
推荐阅读
- c++ - 如何为单列和双列节点c ++构造模板层次结构
- python - 即使我认为我满足要求,也找不到满足要求 tensorflow==1.15 的版本?
- python - 当其他人工作正常时,为什么我不能 pip 安装这个特定的 github 项目?
- android-studio - 如何将活动的变量传递给 BottomNavigationView 的片段?
- xml - 自定义用户创建模板 onchange 不起作用
- ios - 以 Debug 与 Release 运行时 CPU 使用率较高(仪器以 Release 运行)。如何调试?
- html - 得到
- javascript - Window.onUnload 不一致地向服务器发送结果
- python - 将 var 合并到 2 个文件中,只匹配一些 var python
- python - 在绘图条形图中更改颜色