layui手风琴折叠面板失效解决方法 element.init();

折叠面板 依赖 element 模块,否则无法进行功能性操作。

<script>
//注意:折叠面板 依赖 element 模块,否则无法进行功能性操作
layui.use('element', function(){
  var element = layui.element;
  
  //…
});
</script>

如果折叠面板出现无效,使用 element.init(); 方法即可。

© 版权声明
THE END

喜欢就支持一下吧

点赞0 分享