摘要:
jQuery 使用ajax后,$(this)选择的对象不再是以前的对象了,针对这个问题,我的解决方案如下: $(".timeout").click(function () { if (confirm("您确定要注销这条信息吗?")) { var temp = $(this); $.get(this.href, {}, function (ret) { if (ret == "success") { $(temp).parent().prev().text("已注销"); $(temp).parent().html( 阅读全文