bljy.js 784 Bytes
$(function () {
    var title = undefined
    var bus = undefined
    layui.use('element', function () {
        let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
        //监听导航点击
        element.on('nav(demo)', function (elem) {
            layer.msg(elem.text());
        });
    });
    addTabs('#wssq')
    title = GetQueryString('title')
    bus = GetQueryString('bus')
    console.log(title, bus)
    $('.name_title h2').text(title)
    $('.name_title p').text(bus)
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return decodeURIComponent(r[2]);
        return null;
    }
})