jQuery 如何捕获<a>

浏览:395 发布日期:2016/09/01 分类:求助交流
html页面<li class="h4"><a href="javascript:void(0);" onclick="webCall('__MODULE__/Post/login/')">↗登陆</a></li>jsfunction webCall($url) {
    $.ajax({
        type: 'get',
        url: $url,
        success: function () {
            window.location.reload();
        },
        error:function(xhr,errorText,errorType){
            alert(xhr.status+":"+xhr.statusText);
        }
    })
}
要在js里面捕获被点击的这个<a>标签,并给它加上 text-decoration:line-through
最佳答案
评论( 相关
后面还有条评论,点击查看>>