inf : http://www.w3schools.com/jquery/ajax_post.asp
Syntax
$(selector).post(URL,data,function(data,status,xhr),dataType)
| Parameter | Description |
|---|---|
| URL | Required. Specifies the url to send the request to |
| data | Optional. Specifies data to send to the server along with the request |
| function(data,status,xhr) | Optional. Specifies a function to run if the request succeeds Additional parameters:
|
| dataType | Optional. Specifies the data type expected of the server response. By default jQuery performs an automatic guess. Possible types:
|
沒有留言:
張貼留言