chyingp / nodejs-learning-guide Goto Github PK
View Code? Open in Web Editor NEWNodejs学习笔记以及经验总结,公众号"程序猿小卡"
License: Other
Nodejs学习笔记以及经验总结,公众号"程序猿小卡"
License: Other
这个段落的服务端代码跟客户端代码一样,服务端的代码应该是错误的
rt
Hi, 最近开发了一个 GitHub 的微信小程序,可以方便的在手机上查看 GitHub 的相关内容,扫描下方二维码就可以方便查看这个教程~ 同时把该仓库推荐到小程序的首页了
小程序是开源的,有任何问题和意见可以直接提 Issue 反馈:GitHub Trending Hub
cropto的非对称加密的公钥、私钥如何生成?
附上您的代码
const utils = require('./utils');
const keys = require('./keys');
const plainText = '你好,我是程序猿小卡';
const crypted = utils.encrypt(plainText, keys.pubKey); // 加密
const decrypted = utils.decrypt(crypted, keys.privKey); // 解密
console.log(decrypted.toString()); // 你好,我是程序猿小卡
一个刚开始学Node的大三实习生的问题……
Nginx也可以开启gzip压缩,那Node服务器还需要Zlib进行资源压缩吗?
之前的图是旧版本,是 url.parse()方法,现在有了实现 WHATWG标准的新 API:https://nodejs.org/api/url.html#url_url_strings_and_url_objects
app.post('/upload', ...
这里的地址与<form action="/upload-single"
的action不一致
我部署过PHP程序 用的mysql。node比较陌生
进程相关-process
Understanding process.nextTick() 这篇文章502了
不过这里有一篇译文:理解 Node.js 里的 process.nextTick()
你好。我看了你的写的文档,写的非常详细,想咨询一个问题。我按照文档弄了一个socket程序, 发现client 发过来的一条消息,内容比较小的时候没有问题,内容大的时候被服务器进行分片接收了,如下代码的YYYY被打印了多次,将这些接收到的数据要合并在一起就是client的原始消息, 想咨询下你又没有什么办法能把分片的socket请求合并在一起,然后执行dosomething() 方法。
const server = new net.createServer();
server.on('connection', (client) => {
client.on('data', async (msg) => { //接收client发来的信息
const data = msg.toString('utf-8')
console.log("YYYY")
console.log(data )
console.log("xxxxx")
dosomething();
});
});
文件系统操作fs的链接失效了 打开404
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.