87,993
社区成员
发帖
与我相关
我的任务
分享
var arr = ['http://fight.pet.qq.com/cgi-bin/petpk?cmd=fight&puin=654159722']
var xhr = new XMLHttpRequest();
$('#btn').click(function(){
xhr.open( "GET", arr[0], true );
xhr.withCredentials = true; // 支持跨域发送cookies
xhr.setRequestHeader('Accept','text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8')
xhr.send(); // 发送请求
//console.log(xhr)
})




