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.
我是 node.js 的新手。这里只需要一点说明。我使用玉作为视图引擎。除了普通的表单提交和ajax技术,还有没有其他方法可以从node中的jade模板提交日期?
谢谢
哎呀,你甚至可以在 1999 年编写一个 1x1px 透明<img>的 src url,其中包含由另一条路由获取的 GET 参数。如果您要遇到所有这些麻烦,为什么不再次使用 ajax 呢?
<img>
socket.io是另一种方法,尽管它没有专门与 Jade 绑定(也可以从纯 HTML 中使用)。
socket.io