js代码: if(typeof(EventSource)!=="undefined"){ var source=new EventSource("test.php");
前端ajax如下: $.ajax({url:‘http://xxxx.com/action.php’,//路径type:‘post’,data:{id:0}dataType:‘json’,succ