需要帮助查找语法错误

时间:2013-05-23 01:26:27

标签: jquery

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>

1 个答案:

答案 0 :(得分:2)

可能是因为你有

  

260 {/块:

并且反斜杠可能导致问题?

抱歉前锋斜线