如何在此代码中添加点击功能,以便除了打开子菜单还调用过滤器链接重要?
$('#dl-menu a').ready(function(e) {
var selector = $(this).attr('data-filter');
$container.isotope({ filter: selector });
e.preventDefault();
e.stopPropagation();
});
$('.dl-submenu a').click(function(e) {
var selector = $(this).attr('data-filter');
$container.isotope({ filter: selector });
e.preventDefault();
e.stopPropagation();
});