You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[优化] layui.use() 核心机制:1) 确保 html 文档被完全加载就绪再执行回调;2) 当第一个参数为 function 时,则表示加载所有内置模块,且执行的回调即为该 function 参数;(该优化是对 2.6 版本的一次真正巩固,确保了 2.6.0 推荐的「一次性全模块加载」的可行性,可以说是里程碑式的改进,极大地纠正了开发者因不规范代码而造成的各种异常,且对之前版本采用的异步按需加载模块的代码,实现了无缝兼容)