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