end()
例:
$('tbody>tr').click(function(){
        $(this)
            .addClass('selected')
            .siblings().removeClass('selected')
            .end()            //由同级其他元素(siblings)变回$(this)
            .find(':radio').atrr('checked',true);
    });

 

Responses to “jquery的end()方法”

Leave a Reply

( Required )

Copyright © 2011 I-Alive All Rights Reserved