2013-01-21 2 views
0

나는 JQuery와 동위 원소JQuery와 매개 변수

<script type="text/javascript"> 
      $(document).ready(function(){ 
var $container = $('#box-content'); 
$container.isotope({ 
    filter: '*', 
    animationOptions: { 
     duration: 750, 
     easing: 'linear', 
     queue: false, 
    } 
}); 
</script>   

내 된 div를 표시하려면이 자바 스크립트를 그리고이 매개 변수를 추가해야합니다,하지만 난 자바 스크립트를 모르기 때문에 내가 방법을 모르는를 추가하는 방법 .

sortBy : 'random' 

답변

3

http://isotope.metafizzy.co/docs/sorting.html

<script type="text/javascript"> 
       $(document).ready(function(){ 
    var $container = $('#box-content'); 
    $container.isotope({ 
     filter: '*', 
     animationOptions: { 
      duration: 750, 
      easing: 'linear', 
      queue: false, 
     }, 
     sortBy: 'random' 
    }); 
    </script> 
참조