...
|
...
|
@@ -58,7 +58,12 @@ $(() => { |
|
|
// 拦截页面内所有 a 标签的跳转
|
|
|
$body.on('click', 'a[href]', function() {
|
|
|
if (!$(this).hasClass('no-intercept')) {
|
|
|
interceptClick.intercept($(this).attr('href'));
|
|
|
let href = $(this).attr('href');
|
|
|
|
|
|
if (/^\/\//.test(href)) {
|
|
|
href = 'http:' + href;
|
|
|
}
|
|
|
interceptClick.intercept(href);
|
|
|
return false;
|
|
|
}
|
|
|
});
|
...
|
...
|
|