added jquery get request

This commit is contained in:
Lukas-Heiligenbrunner 2019-01-24 14:09:30 +01:00 committed by GitHub
parent 04d086b8d3
commit 1dc1469b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@
'prefix': 'click jquery' 'prefix': 'click jquery'
'body': """ 'body': """
$('$1').click(function() { $('$1').click(function() {
}); });
""" """
@ -11,7 +10,13 @@
'prefix': 'post jquery' 'prefix': 'post jquery'
'body': """ 'body': """
$.post('${1:src}','${2:action}',function(data){ $.post('${1:src}','${2:action}',function(data){
},'text');
"""
'jquery get request':
'prefix': 'get jquery'
'body': """
$.get('${1:src}',function(data){
},'text'); },'text');
""" """
@ -19,6 +24,5 @@
'prefix': 'ready jquery' 'prefix': 'ready jquery'
'body': """ 'body': """
$(document).ready(function() { $(document).ready(function() {
}); });
""" """