我试图找到jQuery.ajax()
在他们的源代码中定义的位置。但是,使用grep
似乎不起作用。
它在哪里?
谢谢你。
> grep jQuery.ajax src/*
src/ajax.js:// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
src/ajax.js: flatOptions = jQuery.ajaxSettings.flatOptions || {};
src/ajax.js: params = jQuery.param( params, jQuery.ajaxSettings.traditional );
src/ajax.js: jQuery.ajax({
src/ajax.js: return jQuery.ajax({
src/ajax.js: ajaxExtend( target, jQuery.ajaxSettings );
src/ajax.js: target = jQuery.ajaxSettings;
src/ajax.js: s = jQuery.ajaxSetup( {}, options ),
src/ajax.js: traditional = jQuery.ajaxSettings.traditional;
src/ajax.js:// Want to move this to jQuery.ajax some day
src/manipulation.js: jQuery.ajax({
2条答案
按热度按时间wn9m85ua1#
这里:github.com/jquery/jquery/blob/main/src/ajax.js
ibps3vxo2#
在
ajax.js
中,第388行: