标签 ajax 下的文章

ajax get post 跨域 并携带cookie

get和post时才有这个跨域和cookie跨域的问题,jsonp因为机制不同,无此问题,但是jsonp数据量有限原生js// 会带上cookie var xmlhttp = new XMLHttpRequest(); xmlhttp.withCredentials = true;jquery ajax$.ajax({ url : rankApi, dataType ...

继续阅读 »