客户端:var source = new EventSource("http://controller.shujudaping.com:8084?token=1");服务器端:<?phpheader("Access-Control-Allow-Origin: *");header('Content-Type: text/event-stream');header('Cache-Control: no-cache');$token = $_GET['token'];echo "token: The token is: {$token}\n\n";flush();?>怎么才能在服务器端拿到token的数据?
添加回答
举报
0/150
提交
取消
