码迷,mamicode.com
首页 >  
搜索关键字:nodejs路由模块使用    ( 1个结果
nodejs路由模块使用
创建路由模块(route.js)functionroute(pathname){ console.log("Abouttoroutearequestfor"+pathname);}exports.route=route;创建http服务模块(server.js)varhttp=require("http");varurl=require("url");functionstart(route){ functiononRequest(request,response){ varpathn..
分类:Web程序   时间:2017-01-24 16:19:35    阅读次数:365
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!