跨域请求接口
//如果前端不跨域请求,可以加上4行header头
header('content-type:application:json;charset=utf8'); header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:POST'); header('Access-Control-Allow-Headers:x-requested-with,content-type');public function Alloreder(){ $userid=addslashes($_REQUEST['otherId']); $callback=addslashes($_REQUEST['callback'