function delVirus(virusFileName,fileName){ var message="确定删除吗?"; if(confirm(message)==true){ var params = { "fileName":fileName, "virusFileName":virusFileName }; $.ajax({ type:"post", url:"delVirus_virusFile.action", data:params, dataType:"json", success:function(data){ if(data.message==0){ var msg="删除成功,点击确定查看!"; if(confirm(msg)==true){ var taskId=$("select:[name=taskN]").find('option:selected').attr("name"); var taskName=$("select:[name=taskN]").find('option:selected').val(); var userName=$("select:[name=userL]").find('option:selected').val(); if(taskName=="全部"){ taskName = "total"; }else if(userName=="全部"){ userName = "total"; } window.location.href = "virusFiles_virusFile.action?taskName="+taskName+"&userName="+userName+"&fldTaskNumber="+taskId; }else{ return false; } }else if(data.message==1){ alert("当前文件不存在!"); } }, error:function(){ alert("对不起,删除失败!"); } }); }else{ return false; } }
?