H5接收服务器的推送(Server-Sent)
- js代码:
- php代码:
'lee' ); $data = json_encode($arr); echo "data: {$data}\n\n";
分享题目:H5接收服务器的推送(Server-Sent)
当前链接:http://scpingwu.com/article/jgioho.html
'lee'
);
$data = json_encode($arr);
echo "data: {$data}\n\n";