Skip to content

Ajax 请求

通用

see doc

$.ajax({
  url: '/xxx',
  data: { ...data },
  type: 'POST',
  contentType: 'application/x-www-form-urlencoded',
  cache: false,
  timeout: 1000 * 1,
  success: function (data) {},
  error: function (err) {},
})