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

分页插件,回车时分页错误bug #5

Open
maoheyuan opened this issue Jun 10, 2022 · 1 comment
Open

分页插件,回车时分页错误bug #5

maoheyuan opened this issue Jun 10, 2022 · 1 comment

Comments

@maoheyuan
Copy link

//回车跳转指定页码
$document.keydown(function (e) {
if (e.keyCode == 13 && $obj.find('.' + opts.jumpIptCls).val()) {
var index = parseInt($obj.find('.' + opts.jumpIptCls).val());
that.filling(index);
typeof opts.callback === 'function' && opts.callback(that);
}
});

要把 $document 改成$obj 才正确

//回车跳转指定页码
$obj.keydown(function (e) {
if (e.keyCode == 13 && $obj.find('.' + opts.jumpIptCls).val()) {
var index = parseInt($obj.find('.' + opts.jumpIptCls).val());
that.filling(index);
typeof opts.callback === 'function' && opts.callback(that);
}
});

@yjwwyj99
Copy link

大佬 刚遇到了这个bug 看看作者有没有解决 就看了你这个issue respect!@maoheyuan

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

2 participants