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

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

当前文章:H5接收服务器的推送(Server-Sent)
本文地址:http://ybzwz.com/article/jgioho.html