2019-01-15 18:27:51 +00:00
|
|
|
'.source.js':
|
|
|
|
'jquery click listener':
|
|
|
|
'prefix': 'click jquery'
|
|
|
|
'body': """
|
|
|
|
$('$1').click(function() {
|
|
|
|
});
|
|
|
|
"""
|
|
|
|
|
|
|
|
'jquery post request':
|
|
|
|
'prefix': 'post jquery'
|
|
|
|
'body': """
|
|
|
|
$.post('${1:src}','${2:action}',function(data){
|
2019-01-24 13:09:30 +00:00
|
|
|
},'text');
|
|
|
|
"""
|
2019-01-15 18:27:51 +00:00
|
|
|
|
2019-01-24 13:09:30 +00:00
|
|
|
'jquery get request':
|
|
|
|
'prefix': 'get jquery'
|
|
|
|
'body': """
|
|
|
|
$.get('${1:src}',function(data){
|
2019-01-15 18:27:51 +00:00
|
|
|
},'text');
|
|
|
|
"""
|
|
|
|
|
|
|
|
'jquery onready listener':
|
|
|
|
'prefix': 'ready jquery'
|
|
|
|
'body': """
|
|
|
|
$(document).ready(function() {
|
|
|
|
});
|
|
|
|
"""
|