//在接收回调端的PHP页开头加入下面这句
header("Access-Control-Allow-Origin:*");//允许跨域
ajax允许跨域
原文:https://www.cnblogs.com/pensive/p/13073073.html