2012-03-20 58 views
0

脚本创建节点服务器(node_server.js),我想包括jquery库到该文件。如何将jquery库包含到纯javascript文件

我想使用jquery在这个文件中,如何将jQuery库这个JavaScript文件,

需要注意的是,我不是含有该文件的视图,这是用JavaScript编写的一个节点服务器。我的服务器

var server = http.createServer(function (request,response) 
{ 
    var pathRegex = new RegExp('^/publish/?$'); 
    var pathname = url.parse(request.url).pathname; 

    if (pathRegex.test(pathname)) { 
     publish(request, response); 
    } else { 
     render404(request, response); 
    } 
}); 

回答

相关问题