标签:成功 ext head html jquery 失败 err $.ajax student
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//$.ajax(a1,a2,a3,a4,a5);
//java参数:a1_value,a2_value,a3_value....
//javascript,把所有的参数打包成1个对象
//{a1:a1_value,a2:a2_value,a3:a3_value}
$.ajax({
url:"StudentShowAllAction",
type:"get",
dataType:"text",
success:function(result){
alert("成功!"+result);
$("#abc").val(result);
},
error:function(){
alert("失败!");
}
});
</script>
</head>
<body>
<input type="text" name="abc" id="abc" value="" />
</body>
</html>
标签:成功 ext head html jquery 失败 err $.ajax student
原文地址:https://www.cnblogs.com/wudashuai/p/9233197.html