开发者

Node: send client-side data back to the server?

Beginner Node question.

I'm running a Node/Express app, and I want to send client-side data back to the server.

What's the best way to do this?

Do I need something like Socket (not that I really understand what Socket is), or is there an in-built Node 开发者_StackOverflow社区way to do it?

Thanks.


Hej richard

The built in way is the standard http way ... ajax or normal form post.

if you want to use ajax (the one without a page refresh) i suggest u use jquery for that.

if you want to do a form post just write a form and point it to a url thats capable of taking the data (write a app.post("/bla", .... handler in express)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜