H5接收服务器的推送(Server-Sent)

  1. js代码:
  2. php代码:
    'lee'
    );
    $data = json_encode($arr);
    echo "data: {$data}\n\n";

网页名称:H5接收服务器的推送(Server-Sent)
文章源于:http://pwwzsj.com/article/jgioho.html