本文共 724 字,大约阅读时间需要 2 分钟。
public String execute() throws Exception{
System.out.println("sss");
HttpServletResponse response=
ServletActionContext.getResponse();
PrintWriter out=response.getWriter();
out.println("ss");
out.close();
return "success";
}
function loadXMLDoc() {
var xmlhttp;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
document.getElementById("myDiv").innerHTML = xmlhttp.responseText;
}
};
xmlhttp.open("GET", "a/ajax.action", true);
xmlhttp.send();
}
Let AJAX change this text
Change Content
转载地址:https://blog.csdn.net/weixin_31107269/article/details/115539072 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!