mirror of
https://github.com/amix/vimrc
synced 2025-07-08 09:35:00 +08:00
renamed sources_non_forked folder to bundle
This commit is contained in:
18
bundle/snipmate-snippets/javascript-jquery/ajax.snippet
Normal file
18
bundle/snipmate-snippets/javascript-jquery/ajax.snippet
Normal file
@ -0,0 +1,18 @@
|
||||
$.ajax({
|
||||
url: "${1:mydomain.com/url}",
|
||||
type: "${2:POST}",
|
||||
dataType: "${3:xml/html/script/json}",
|
||||
data: $.param( $("${4:Element or Expression}") ),
|
||||
|
||||
complete: function() {
|
||||
${5://called when complete}
|
||||
},
|
||||
|
||||
success: function() {
|
||||
${6://called when successful}
|
||||
},
|
||||
|
||||
error: function() {
|
||||
${7://called when there is an error}
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user