利用cors,实现js跨域访问Tomcat下资源
摘要:
第一步:页面js代码:function createCORSRequest(method, url){ var xhr = new XMLHttpRequest(); if ("withCredentials" in xhr){ xhr.open(method, url, ... 阅读全文
posted @ 2015-02-10 11:21 chuxiong 阅读(13830) 评论(1) 推荐(1)
浙公网安备 33010602011771号