Products

jQuery(document).ready(function($){ // 检查每个类别列表项 $('.widget_product_categories .product-categories').each(function(){ // 展开所有的子列表 $(this).find('.children').show(); // 将所有含有子类的列表项标记为展开状态 $(this).find('.cat-parent').addClass('opened'); }); });