yyjg.js 305 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 $(function () { layui.use('element', function () { let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 //监听导航点击 element.on('nav(demo)', function (elem) { layer.msg(elem.text()); }); }); });