问题:EventSource 收不到流数据及 EventSource 的 onmessage 方法为null

文章目录

    • 问题
    • 分析

问题

在开发时,有用到 EventSource,但是在 new EventSource 的时候,打印 new EventSource 如下:

onmessage :  null,
onerror :  null,
onopen: f(event)
  • 前端

你可能感兴趣的:(1024程序员节)