你能帮助我吗:我正在创建一个学生系统我想使用的方法不是servlet doPost或doGet,我的方法id是saveStudent但它没有发送数据,我正在使用j
$.ajax({
url: com/StudentSystem/student/saveStudent, //have included the method
type: "post",
data: {"emailAddress": emailAddress},
dataType: "text",
cache: false,
success: function(data) {
}
});
<form name="student" method="post" action="index.jsp">
<table >
<tr>
<td><input type="text" name="emailAddress" id="emailAddress"></td>
</tr>
<tr>
<td><input type="submit" name="save" id="btnSave" ></td>
</tr>
</table>
</form>
查询/ AJAX