ajax提交js

来源:互联网 发布:excel表格不能合计数据 编辑:程序博客网 时间:2024/04/18 15:03
 function withdraw_onclick(){ 
var workItemID = getSelectedItemID();
     $.ajax({
      url:"<%=request.getContextPath()%>/drawwork.do?workItemID="+workItemID,
      type:"get",
      async:"false",
      cache:false,
      success: function(data){
      
   if(data=="true"){
    alert(data);
               document.forms[0].operation.value = "withdraw";
               document.forms[0].submit();
            }else{
                 alert("此件已不能回收!");
            }
  }
   });
}
原创粉丝点击