Skip to content
New issue

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

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

Already on GitHub? # to your account

怎么在不刷新页面时重建瀑布流 #12

Open
dexterdeng opened this issue Jan 1, 2014 · 3 comments
Open

怎么在不刷新页面时重建瀑布流 #12

dexterdeng opened this issue Jan 1, 2014 · 3 comments

Comments

@dexterdeng
Copy link

如何在不刷新页面重建不瀑流, 应要修改源码吧, 重置哪些变量,或者重新绑定哪些事件? 谢谢。

@balibell
Copy link
Member

balibell commented Jan 2, 2014

目前没有直接方法支持,我先看看,最近两天给你答复。

163

发件人: dexter
发送时间: 2014-01-01 17:06
收件人: duitang/waterfall
主题: [waterfall] 怎么在不刷新页面时重建瀑布流 (#12)
如何在不刷新页面重建不瀑流, 应要修改源码吧, 重置哪些变量,或者重新绑定哪些事件? 谢谢。

Reply to this email directly or view it on GitHub.

@balibell
Copy link
Member

balibell commented Jan 7, 2014

如果你的需求仅仅是改变瀑布流的内容,而不改变瀑布流的形态(宽度、单元模块的区别)

那就很简单了。

方法:

改变对应的 form 表单即可,包括action 地址,和下面的input参数。

$('#clickchange').click(function (e){
e.preventDefault();
e.stopPropagation();

// $('.woo-pcont').data('wootemp','2');
// 改变对应的form 表单
$('#woo-form-collect').attr('action','xxxx.html?yy=zz');

// 传参值为1,表示刷新到第1大页,不传则刷新当前所在大页
$.Woo.pagine[0].refreshPage(1);

// 或者找到对应的 .woo-swa 节点,触发它的click事件
// $('.woo-swa').eq(0).click();

})

163

发件人: 163
发送时间: 2014-01-02 11:20
收件人: duitang/waterfall
主题: Re: [waterfall] 怎么在不刷新页面时重建瀑布流 (#12)
目前没有直接方法支持,我先看看,最近两天给你答复。

163

发件人: dexter
发送时间: 2014-01-01 17:06
收件人: duitang/waterfall
主题: [waterfall] 怎么在不刷新页面时重建瀑布流 (#12)
如何在不刷新页面重建不瀑流, 应要修改源码吧, 重置哪些变量,或者重新绑定哪些事件? 谢谢。

Reply to this email directly or view it on GitHub.

@dexterdeng
Copy link
Author

基本上也能解决问题,谢谢

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

No branches or pull requests

2 participants