摘要:
1、控制器 header("Access-Control-Allow-Origin: *"); class Index extends Api {} 2、app/admin/config.php //允许跨域的域名,多个以,分隔 'cors_request_domain' => 'localhost 阅读全文
摘要:
GET // 1. 创建一个xmlhttpRequest对象 var xmlhttp = null; var res; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObje 阅读全文