source code को देख से, मेरा मानना है कि (वर्तमान) चूक रहे हैं jQuery.ajaxSettings
में पाया गया, निश्चित रूप से $.ajaxSettings
के रूप में भी उपलब्ध है। तो यदि आपने उन्हें नहीं बदला है, तो आप उन्हें वहां से प्राप्त करने में सक्षम होना चाहिए।
ध्यान दें कि यदि आपके पास $.ajaxSetup
उपयोगिता पद्धति का उपयोग करके, उन्हें बदल उदाहरण के लिए, आप आपके द्वारा बनाए गए नए चूक मिलेगा, नहीं jQuery पुस्तकालय से निहित वाले।
भी स्रोत कोड देख, ऐसा लगता है चूक निम्नलिखित हैं:
ajaxSettings: {
url: ajaxLocation,
isLocal: rlocalProtocol.test(ajaxLocParts[ 1 ]),
global: true,
type: "GET",
contentType: "application/x-www-form-urlencoded",
processData: true,
async: true,
/*
timeout: 0,
data: null,
dataType: null,
username: null,
password: null,
cache: null,
traditional: false,
headers: {},
*/
accepts: {
xml: "application/xml, text/xml",
html: "text/html",
text: "text/plain",
json: "application/json, text/javascript",
"*": "*/*"
},
contents: {
xml: /xml/,
html: /html/,
json: /json/
},
responseFields: {
xml: "responseXML",
text: "responseText"
},
// List of data converters
// 1) key format is "source_type destination_type" (a single space in-between)
// 2) the catchall symbol "*" can be used for source_type
converters: {
// Convert anything to text
"* text": window.String,
// Text to html (true = no transformation)
"text html": true,
// Evaluate text as a json expression
"text json": jQuery.parseJSON,
// Parse text as xml
"text xml": jQuery.parseXML
}
},
भयानक सटीक रूप से ओवरराइट कर सकता है जो मैं ढूंढ रहा हूं। धन्यवाद – locrizak
@locrizak: बस याद रखें कि यह अनियंत्रित है इसलिए यह भविष्य के सबूत की आवश्यकता नहीं है। –
सच है, लेकिन मैं अभी भी jquery लाइब्रेरी में कुछ उपयोग करता हूं बल्कि इसे किसी अन्य ऑब्जेक्ट में फिर से लिखता हूं। – locrizak