$(function(){
$('.sort-option a').click(function(){
$(this).css('color','cornflowerblue').siblings().css('color','red');
})
})
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
siblings接收的是同级,而非css