【发布时间】:2020-04-07 18:57:50
【问题描述】:
我们如何在我的一个 ajax 调用中忽略带有 Pace.js 进度动画的 URL, 我遵循了文档中提到的以下内容,我试图忽略 URL 'getTip',但它仍然会触发节奏动画。
ajax: {
trackMethods: ['GET', 'POST'],
trackWebSockets: false,
ignoreURLs: ['arterySignalR', 'browserLink', 'getTip']
}
或者我如何在以下调用中使用 Pace.ignore:
$("a[name^='qtipname']").each(function() {
var $this = $(this);
var id = $this.attr('rel');
$this.qtip({
content:{
text: 'Loading...',
ajax: {
url: urlTip,
type: 'GET',
loading: false,
data: {"objectID": id}
}
},
show: 'mouseover', // Show it on mouseover
hide: {
delay: 200,
fixed: true // We'll let the user interact with it
},
style: {
classes: 'ui-tooltip-light ui-tooltip-shadow',
width: 290
}
});
});
【问题讨论】:
-
尝试
Pace.ignoreignoreURLs中的绝对路径
标签: javascript jquery qtip