XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin
解决办法:
1.恳求的url是PHP的,须要PHP中
echo header("Access-Control-Allow-Origin: *");
2.html的,须要在head头加
<meta http-equiv="Access-Control-Allow-Origin" content="*">
这样就可以解决Ajax跨域访问问题。