Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过 django 的 Web 界面启动了一个长脚本,我想实时通知脚本的进度,客户端将在弹出窗口中看到脚本正在执行的所有操作。
在我进行打印时的脚本中('解析 xml 文件...'),我希望客户端在弹出窗口中看到它。
请问我该怎么做,因为我只知道 ajax 而这是不可能的?
谢谢。
我不知道任何现成的解决方案,但我可以给你一些提示(不需要 websocket):