welefen/pjax

event.preventDefault()无效果

juvenrui opened this issue · 0 comments

如题,jQuery用的是2.1.3版本的。试了多次,在pjax.xhr = $.ajax(pjax.options);这里就开始preventDefault无效果了。请教下这个如何解决?

option设置基本就是用的默认的:
$.pjax({
selector: 'a[data-pjax]',
container: '#pjax-container',
show: 'fade',
cache: false,
storage: false,
titleSuffix: '',
filter: function(){},
callback: function(){}
});