//修改 取消 function editBtnChange(obj) { $(obj).parents(".conright").children(".revamp").slideToggle(500, toggleText); } function toggleText() { if ($(this).parents(".conright").find(".revamp_btn").text() == "修改") { $(this).parents(".conright").find(".revamp_btn").text("取消") } else { $(this).parents(".conright").find(".revamp_btn").text("修改") } }