ajax请求杂文

1、

$('#submit-btn').click(function(event){
event.preventDefault();//每个ajax请求前都加上这句,阻止默认的事件触发。否则可能会引起 http请求canceled
  $.ajax({...});
})
posted on 2018-01-23 17:42  GetLastError  阅读(105)  评论(0编辑  收藏  举报