如何将ajax的跨域ajaxSetup方法改写成长尾词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计81个文字,预计阅读时间需要1分钟。
gistfile1.txt: //配置IP地址var ip=http://192.168.0.116:8087;var ip=http://localhost:48716;$(function () { $(document).ajaxSuccess(function (evt, XHR, settings) { // 返回 if (settings.dataType !=) { if (XHR.responseText !=undefined) { if ($parseJS) {
gistfile1.txt//var ip="192.168.0.116:8087"; var ip="localhost:48716"; $(function () { $(document).ajaxSuccess(function(evt, XHR, settings) { //return; if(settings.dataType!="html"){ if(XHR.responseText!=undefined){ if($.parseJSON(XHR.responseText).Code==100){ location.href="/login.html"; } } } }); $.ajaxSetup({ crossDomain: false, }); });
本文共计81个文字,预计阅读时间需要1分钟。
gistfile1.txt: //配置IP地址var ip=http://192.168.0.116:8087;var ip=http://localhost:48716;$(function () { $(document).ajaxSuccess(function (evt, XHR, settings) { // 返回 if (settings.dataType !=) { if (XHR.responseText !=undefined) { if ($parseJS) {
gistfile1.txt//var ip="192.168.0.116:8087"; var ip="localhost:48716"; $(function () { $(document).ajaxSuccess(function(evt, XHR, settings) { //return; if(settings.dataType!="html"){ if(XHR.responseText!=undefined){ if($.parseJSON(XHR.responseText).Code==100){ location.href="/login.html"; } } } }); $.ajaxSetup({ crossDomain: false, }); });

