📜  转换为 jsx - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:07.491000             🧑  作者: Mango

代码示例4
$(window).on('load', function () {
    $(".portfolio-filter").each(function () {
      var e = $(this);
      e.imagesLoaded(function () {
        var $grid = e.isotope({
          layoutMode: "masonry",
        });
        $(".portfolio-menu").find("a").on("click", function () {
          var filterValue = $(this).attr("data-filter");
          return $(".portfolio-menu").find("a").removeClass("active"), $(this).addClass("active"),
            $grid.isotope({
              filter: filterValue
            }), !1
        });
      });
    });
  });