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