前台页面——调后台方法

jq:

$.ajax({
           type: "POST",
           url: "${ctx}/taskManage/deleteTask",
           contentType: "application/json; charset=utf-8",
           data: taskId,
           dataType: "json",
           success: function (mesg) {},
           error: function (mesg) { }
      });

 

js:

location.href="${ctx}/taskManage/taskRerun.do?id="+taskId;

posted @ 2017-04-27 14:02  BruceDu  Views(253)  Comments(0Edit  收藏  举报