且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery的砌体和Ajax追加项目?

更新时间:2023-12-05 16:45:40

也有类似的问题,而是使用以下行(换算为您的code)。很抱歉,我不记得在那里我找到了。

Had a similar problem and instead used the following line (converted for your code). Sorry, I don't recall where I found it.

在你的code替换这样的:

In your code replace this:

jQuery("#content").append(el).masonry( 'appended', el, true );

通过这样的:

jQuery("#content").append(el).masonry( 'reload' );

http://masonry.desandro.com/methods.html