-1

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>
4

1 回答 1

2

可能是因为你有

260{/块:

反斜杠可能导致问题?

对不起正斜杠

于 2013-05-23T01:29:36.263 回答