![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node.js
文章平均质量分 63
霹雳桃
这个前端有点菜!!!!!
展开
-
gulp的使用
gulp一、gulp41.series 和 parallel 的区别// series 顺序执行gulp.task( 'default', gulp.series(['a'], function (done) { console.log('bbb'); done(); }));// parallel 同时执行gulp.task( 'default', gulp.parallel(['a'], function (done) { console.log原创 2022-04-11 20:56:05 · 463 阅读 · 0 评论 -
ajax && node服务 详解
ajax && node服务 详解一、open — method 请求方式 && url 请求地址xhr.open(method, url, async, user, password);// 例:xhr.open('GET', 'http://localhost:4010', true);1.methodGET POST PUT DELETEGET 获取如果发送请求的地址和上次的地址相同时,会调用缓存,不回去服务器请求在历史跳转后,回退时,原创 2022-03-26 16:07:54 · 1238 阅读 · 0 评论 -
node 服务
node 服务httphttp 模块是 node 自带的一个 api,是 http 通信模块创建 node 服务var http = require("http")这是通过 http 创建一个 node 服务回调函数http.createServer(fn)fn 这个回调函数中包含两个参数,一个是 req,一个是 res,一旦有前端发送数据给服务端是,就会执行这个回调函数req 是请求对象,前端发送数据给服务端的,这个发送来的数据叫做请求数据res 是响应对象,服务端发送数据给前端原创 2022-03-24 20:32:56 · 1001 阅读 · 0 评论 -
npm 的使用
npm 的使用一、nrm 的使用1、安装npm i nrm -g2、显示列表nrm ls3、npm 下载的镜像地址使用 nrm 的命令 nrm ls 查询npm ---------- https://registry.npmjs.org/yarn --------- https://registry.yarnpkg.com/tencent ------ https://mirrors.cloud.tencent.com/npm/cnpm --------- https://原创 2022-03-24 20:32:11 · 2825 阅读 · 0 评论