精简AJAX请求
2021-01-13
window.onload=function (){
var bqt = $('iframe[id^=iframeu]')[0].src;
console.log(bqt);
$.ajaxPrefilter(function (options) {
if (options.crossDomain && jQuery.support.cors) {
var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
//options.url = "http://cors.corsproxy.io/url=" + options.url;
}
});
$.get(bqt,
function (response) {
console.log(response);
});
}
2021-01-13
2021-01-30
2021-07-01
2021-01-11
2021-08-15
2021-10-11
2021-04-28
2021-01-11
评论