Dreamweaver告诉我这些确切的行有语法错误,我似乎无法找到问题。它也在“/ Script>”
中关闭function(){
var $wall = $('#content');
$wall.masonry({
itemSelector: '.post',
columnWidth:{block:ifNot2columnsbroaderposts}210{block:ifNot2columnsbroaderposts}{block:if2columnsbroaderposts}260{/block:if2columnsbroaderposts}
});
$wall.infinitescroll({
navSelector : ".nav",
nextSelector : ".nav a",
itemSelector : ".post",
loading : "",
donetext : ""
},
function( newElements ) {
var $newElems = $( newElements ).css({
opacity: 0
});
$newElems.imagesLoaded(function(){
$newElems.animate({ opacity: 1 });
$wall.masonry( "appended", $newElems, true );
});
});
}
</script>
答案 0 :(得分:2)
可能是因为你有
260 {/块:
并且反斜杠可能导致问题?
抱歉前锋斜线