$(".bookadd").click(function(){
$.ajax({
cache: true,
type: "POST",
url: $("#bookform").attr("action"),
data:$("#bookform").serialize(),
async: false,
error: function(request) {
alert("提交信息時(shí)發(fā)生錯(cuò)誤!");
},
success: function(data) {
alert(data);
}
});
});