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.
到目前为止,我找到了一些关于如何配置 dojox.cometd 的示例,但没有一个示例配置了 connectionType。我目前对回调轮询而不是长轮询(据我所知,这是默认的)更感兴趣。
有人可以在这里帮助我吗?我必须承认 dojox 文档对我来说非常晦涩难懂,甚至源代码也有点混淆(至少对我来说,我不是 javascript-ninja 编码器)
好的,我想我发现 dojo 足够聪明,可以通过查看请求的 url 来激活回调轮询。