Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event.preventDefault()无效果 #13

Open
juvenrui opened this issue May 12, 2015 · 0 comments
Open

event.preventDefault()无效果 #13

juvenrui opened this issue May 12, 2015 · 0 comments

Comments

@juvenrui
Copy link

如题,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(){}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant