抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

依赖配置
target="_blank"]):not([target="view_window"]):not([href$=".xml"])', selectors: [ "head title", "head meta[name=keywords]", "head meta[name=description]", "#l_main", "#pjax-header-nav-list", ".pjax", "pjax", // 标签 "script[data-pjax], .pjax-reload script" // script标签添加data-pjax 或 script标签外层添加.pjax-reload 的script代码段重载 ], cacheBust: false, // url 地址追加时间戳,用以避免浏览器缓存 timeout: 5000, }); }); document.addEventListener('pjax:send', function (e) { //window.stop(); // 相当于点击了浏览器的停止按钮 try { var currentUrl = window.location.pathname; var targetUrl = e.triggerElement.href; var banUrl = [""]; if (banUrl[0] != "") { banUrl.forEach(item => { if(currentUrl.indexOf(item) != -1 || targetUrl.indexOf(item) != -1) { window.location.href = targetUrl; } }); } } catch (error) {} // 使用 volantis.pjax.send 方法传入pjax:send回调函数 参见layout/_partial/scripts/global.ejs volantis.pjax.method.send.start(); }); document.addEventListener('pjax:complete', function () { // 使用 volantis.pjax.push 方法传入重载函数 参见layout/_partial/scripts/global.ejs volantis.pjax.method.complete.start(); }); document.addEventListener('pjax:error', function (e) { if(volantis.debug) { console.error(e); console.log('pjax error: \n' + JSON.stringify(e)); }else{ // 使用 volantis.pjax.error 方法传入pjax:error回调函数 参见layout/_partial/scripts/global.ejs volantis.pjax.method.error.start(); window.location.href = e.triggerElement.href; } });