摘要: 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( 阅读全文
posted @ 2011-03-13 18:09 翟士丹 阅读(686) 评论(0) 推荐(0) 编辑