感觉在windows下学习nodejs,就是个坑,模块,npm,nrm,n,另外nodejs也是由c++写的,本人对c++也不是很熟悉,断断续续学了一个多月,啥成果也没做出来,就会个简单的回调函数等等最基础的东西,有点。。。。
PHP中文网2017-04-17 16:17:17
node.js
Apart from the fact that it is written in C++, does it have anything to do with C++ when you use it? Not really...
PHPz2017-04-17 16:17:17
You need to make it clear that only the bottom layer of nodejs is c++ envelope, but its syntax is completely javascript syntax, so you don’t need to learn c++ at all. Just like php, php also has a bottom layer written in c or c++, but it has its own syntax, you can just call it according to the syntax, without worrying about its underlying structure.
You just need to learn the syntax of javascript.
伊谢尔伦2017-04-17 16:17:17
It is recommended to look at open source projects, which can be searched on nodeclub github, to understand the basic syntax and usage of js, some extensions of es6, and of course the basic modules such as network, files, streams, events and so on provided by node itself.
The most important thing is to write, and read what others write. . Play through it yourself, play through the code a few more times, and think more. That’s it! ~! ~! ~
怪我咯2017-04-17 16:17:17
The most important thing is to write it yourself and solve the problems you encounter during the writing process. In the early stage, first look at the node introductory examples on the Internet to familiarize yourself with the basic usage, and then look at streams, files, buffers, etc. . You can take a look at the in-depth explanation of nodejs
PHPz2017-04-17 16:17:17
1. Read nodejs-api several times
2. Read Learn NodeJS in Seven Days once
3. Build the MEAN framework by yourself and get started