📅  最后修改于: 2022-03-11 15:03:56.201000             🧑  作者: Mango
// isotope cdn
// isotope call
// init Isotope
var $grid = $('.grid').isotope({ });
// filter items on button click
$('.filter-button-group').on( 'click', 'button', function() {
var filterValue = $(this).attr('data-filter');
$grid.isotope({ filter: filterValue });
});