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

太赞了,加油! #1

Closed
JonneyYan opened this issue Jun 26, 2015 · 3 comments
Closed

太赞了,加油! #1

JonneyYan opened this issue Jun 26, 2015 · 3 comments

Comments

@JonneyYan
Copy link

No description provided.

@JonneyYan
Copy link
Author

请问,onchange回调里可以带参数吗?

@littledu
Copy link
Member

可以啊

var pageSlide = new PageSlide({
    pages: $('.page'),
    onchange: function(){
            console.log(this);    //this 就指向了当前 pageSlide 的实例,比如 this.index 取得当前的页码 啊什么的,输出一下 this 就知道能获得到的都有什么参数了
    }
})

@JonneyYan
Copy link
Author

大神可以留个QQ吗?让小弟膜拜膜拜

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