获取<a>标签点击事件的当前对象,改变文本值

html:

<a href="#" class="change">点击前</a>

jquery:

$(document).on('click','.change',function(){
        $(this).text("点击后");
    })

猜你喜欢

转载自blog.csdn.net/admin_o1/article/details/78363465
今日推荐