如下配置jQuery ajax设置:
$.ajaxSetup({ error: handleXhrError});其中
handleXhrError功能如下所示:
function handleXhrError(xhr) { document.open(); document.write(xhr.responseText); document.close();}
如下配置jQuery ajax设置:
$.ajaxSetup({ error: handleXhrError});其中
handleXhrError功能如下所示:
function handleXhrError(xhr) { document.open(); document.write(xhr.responseText); document.close();}