jsp页面上
<a flag="${laboratoryEntity.id}" href="#;" οnclick="pass(this)">通过</a>
function pass(obj){
var a=$(obj).attr("flag");
confirmx("确定要通过吗",function(){
$.post("${ctx}/qaback/laboratoryChiefYi/pass",{id:a},function(res){
var code=res;
if(code==1){
//alert('success')
location.href="${ctx}/qaback/laboratoryChiefYi/?repage&&ChiefYi_state=1"
}else{
<a flag="${laboratoryEntity.id}" href="#;" οnclick="pass(this)">通过</a>
function pass(obj){
var a=$(obj).attr("flag");
confirmx("确定要通过吗",function(){
$.post("${ctx}/qaback/laboratoryChiefYi/pass",{id:a},function(res){
var code=res;
if(code==1){
//alert('success')
location.href="${ctx}/qaback/laboratoryChiefYi/?repage&&ChiefYi_state=1"
}else{