xyzcxq.js 686 Bytes
$(function () {
    if (decodeURI(GetQueryString('title')) == '首页') {
        $('.second-label').hide();
        $('.second-label').next().hide();
    }else {
        $('.second-label').show();
        $('.second-label').next().show();
        $('.second-label').attr('href',GetQueryString('href'));
        $('.second-label').attr('title', decodeURI(GetQueryString('title')));
        $('.second-label').text(decodeURI(GetQueryString('title')));
    }
})

layui.use('element', function () {
    var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
    //监听导航点击
    element.on('nav(demo)', function (elem) {
    });
});