文章分类 - Node.js
摘要://爬取一个页面 const http = require('http'); const fs = require('fs'); const _url="www.baidu.com"; const paths=""; const header={ 'Accept': 'text/html,appli
阅读全文
摘要:最近项目要用到websocket技术了,重温一下当初学习写的DEMO 1.为了运行h5页面,需要利用NODE开启一个web服务器,端口号8888,取名为 web.js , 运行node web.js var fs = require('fs'); var events = require('even
阅读全文

浙公网安备 33010602011771号