1. Click on Who He showed its siblings Hide
$('.goods').show().siblings().hide()
2, click on it and let him inside said some elements are displayed
$('#pingjia').children().show()
3, the use of a method other than jquery class name can dynamically add further switch
$('.goods').addClass('xianshi').siblings().removeClass('xianshi');
4, the same element is clicked, display and hide when you can use toggle
$('button').on('click',function(){
$('p').toggle();
});