NODE.JS玩玩
2024-08-29 14:56:21
按一个网页的来,最好最后能到EXPRESS.JS。
http://www.nodebeginner.org/index-zh-cn.html
这样就能对比DJANGO,看看两者的WEB框架,加深认识。
var http = require("http"); function onRequest(request, response){ console.log("Request recevied."); response.writeHead(200, {"Content-type":"text/plain"}); response.write("Hello, World."); response.end(); } http.createServer(onRequest).listen(8888); console.log("Server is listen at 8888....");
最新文章
- 关于Android中ArrayMap/SparseArray比HashMap性能好的深入研究
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about t
- Quartus II9.0 使用中文输入的方法
- LeetCode——Find the Duplicate Number
- Ogre中OctreeSceneManager
- 一起学CUDA(零)
- The 7th Zhejiang Provincial Collegiate Programming Contest->;Problem B:B - Somali Pirates
- office web apps
- libsvm java 调用说明
- asp:cookies的属性
- iOS 图形编程总结
- cookie,session,token的定义及区别
- 数控G代码编程详解大全
- C++数组和指针加减法和sizeof问题
- Mybatis动态SQL单一基础类型参数用if标签
- openEntityForm如何给关于(regardingobjectid)类型查找字段赋值?
- Python正则匹配之有名分组
- G1收集器的收集原理
- Spring boot FastJson
- document.head.appendChild(element) 在 IE8 及以下报错
热门文章
- GCC安装
- mysql - 启动错误InnoDB: mmap(137363456 bytes) failed; errno 12
- ASP.NET问题处理---targetFramwork=‘4.0’错误
- SqlServer 由于未在SqlServer的此实例上安装复制组件解决方法
- jdk在windows中的配置
- hadoop_集群安装_2
- spring boot 配置文件提示自定义配置属性
- 从零基础到App Store
- js获取任意元素到页面的距离
- c#面向对象小结