<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" import="com.model.*"
contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@include file="/inc/incTagLib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript"
src="/7e/js/util/jquery.js"></script>
<script language="javascript" type="text/javascript">
function truncate() {
$.get("/7e/s/truncate.action");
/* $.ajax({
url : "/7e/s/truncate.action",
type : "POST",
success : function() {
alert("succ");
},
error : function() {
alert("失败");
}
});
*/
}
</script>
</head>
<body>
<a href="/7e/s/showBatchUploadCourse.action?adminid=1"
onclick="truncate();">ajax</a>
</body>
</html>
<s:debug></s:debug>
jQuery同时请求两个action 其中一个不需要返回值
最新推荐文章于 2021-08-06 15:24:05 发布