下面是js里的代码,在html中点submit,会alert出“aaa”,但是就是无法提交到servlet里
$(function() {
alert("aaa");
$('#button1').click(function() {
$.ajax({
type : 'Post',// 数据发送方式
url : '/BookSystem/bookser',// 后台处理程序的页面路径
data : $('signupform').serialize(),
dataType : 'text',// 返回的数据格式
beforeSend : function() {
BeforeSet(message);
},
error : function(XMLHttpRequest) {
alert('出错l ,错误信息:' + XMLHttpRequest, message);
},
success : function(data) {
alert(data);
}
});
});
})