Как ориентироваться в src папке проекта jquery?
Где я могу найти конкретно этот jQuery.get метод?:
/src/ajax.js #L815
getScript: function( url, callback ) {
return jQuery.get( url, undefined, callback, "script" );
}
Тот что мне удалось найти выполняет совсем другую задачу:
/src/core.js #L58
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get: function( num ) {
return num != null ?
// Return just the one element from the set
( num < 0 ? this[ num + this.length ] : this[ num ] ) :
// Return all the elements in a clean array
slice.call( this );
}
Версия Jquery 1.12.4
jQuery.each( [ "get", "post" ], function( _i, method ) {jQuery[ method ] = function( url, data, callback, type ) { ...
- github.com/jquery/jquery/blob/…