在客户端javascript中如何获得node express路由器方法的结果

时间:2013-05-28 14:10:14

标签: javascript node.js express

在我的节点应用程序中,从快速路由器方法我需要将一些结果发送到客户端。如何在不使用socket.io的情况下在客户端获得该结果。

app.js

  var express=require('express');
  var app=express();
  app.configure(function(){
     app.use(express.static(__dirname + '/public'));
  });
 app.listen(8011);

 app.get('/',function(req,res){

    //from here i need to send some result to the client side..Without using socket.io framework how can i send the data to the client side then how to get that data in client side. 

 });

0 个答案:

没有答案