当您按下表单页面上的按钮时,将重新加载。
$(document).on('click', '.share_file_form', function(event) {
$(event.target).validate({
submitHandler: function(form) {
$.ajax({
type: "POST",
url: "http://api.server.com/share/",
timeout: 20000,
data: $(form).serialize(),
beforeSend: function() {
},
success: function(msg){
},
error: function(msg){
}
});
}
});
});
怎么了?怎么了?怎么了?