Skip to content

Instantly share code, notes, and snippets.

@duobei
Last active December 10, 2015 18:18
Show Gist options
  • Save duobei/4473216 to your computer and use it in GitHub Desktop.
Save duobei/4473216 to your computer and use it in GitHub Desktop.
jquery-ajax 使用方法

jQuery.post(url, [data], [callback], [type])

概述

  • 通过远程 HTTP POST 请求载入信息。

  • 这是一个简单的 POST 请求功能以取代复杂 $.ajax 。 请求成功时可调用回调函数。 如果需要在出错时执行函数,请使用 $.ajax。

参数

url, [data], [callback], [type]  String, Map, Function, String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment