609px

Console

1 0 0 0
  • JSFiddle Console. Turn on/off in Editor settings.
  • ☁️ "Running fiddle"
  • "MOCK POST: /test/0", { accepts: { *: "*/*", html: "text/html", json: "application/json, text/javascript", script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript", text: "text/plain", xml: "application/xml, text/xml" }, async: true, cache: false, contents: { html: [object RegExp] { ... }, json: [object RegExp] { ... }, script: [object RegExp] { ... }, xml: [object RegExp] { ... } }, contentType: "application/x-www-form-urlencoded; charset=UTF-8", converters: { * text: function String() { [native code] }, text html: true, text json: function( data ) { // Attempt to parse using the native JSON parser first if ( window.JSON && window.JSON.parse ) { return window.JSON.parse( data ); } if ( data === null ) { return data; } if ( typeof data === "string" ) { // Make sure leading/trailing whitespace is removed (IE can't handle it) data = jQuery.trim( data ); if ( data ) { // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( rvalidchars.test( data.replace( rvalidescape, "@" ) .replace( rvalidtokens, "]" ) .replace( rvalidbraces, "")) ) { return ( new Function( "return " + data ) )(); } } } jQuery.error( "Invalid JSON: " + data ); }, text script: function( text ) { jQuery.globalEval( text ); return text; }, text xml: function( data ) { var xml, tmp; if ( !data || typeof data !== "string" ) { return null; } try { if ( window.DOMParser ) { // Standard tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } else { // IE xml = new ActiveXObject( "Microsoft.XMLDOM" ); xml.async = "false"; xml.loadXML( data ); } } catch( e ) { xml = undefined; } if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; } }, data: { ... }, dataType: "json", error: function(b,c){var d=r(a,null,"xhr",[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?K(a,0,"Invalid JSON response",1):4===b.readyState&&K(a,0,"Ajax error",7));C(a,!1)}, flatOptions: { context: true, url: true }, global: true, isLocal: false, jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) ); this[ callback ] = true; return callback; }, processData: true, responseFields: { text: "responseText", xml: "responseXML" }, success: function(b){var c= b.error||b.sError;c&&K(a,0,c);a.json=b;i(b)}, type: "POST", url: "/test/0", xhr: function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch( e ) {} } }