jquery点击显示隐藏

//点击更多
var _i = 0;
$('#more').click(function () {
    if(_i == 1){
        $('.hide-group').css('display','none');
        _i = 0;
        $('#more').text('更多 >>');
    }else{
        $('.hide-group').css('display','block');
        _i = 1;
        $('#more').text('收起 >>');
    }
});

猜你喜欢

转载自blog.csdn.net/hechenhongbo/article/details/103167926
今日推荐