2013-02-10 186 views
0
  • Node.js的web服務器
  • 在web服務器從
app.get('/documents/:id.:format?', function(req, res) { 
    **dataTobeSentToClientSideJavaScript** = processRequest (req); 
    ... 
}) 

應在服務器端寫什麼代碼,這樣我可以填充預計將在我的Ajax請求上面的「handleRespone」對象dataTobeSentToClientSideJavaScript在服務器端創建?

+0

它有助於:http://stackoverflow.com/questions/6011984/basic-ajax-send-receive-with-node-js – 2013-02-10 20:34:53

回答

相關問題