We generally use thinkphp + bootstrap + jquery for development. Node. js is generally responsible for anything. I read some documents on the Internet and understand it in general. But who can talk about specific applications. He appeared to solve the previous problems? What convenience does it take me to use it? Thanks understanding... we use thinkphp + bootstrap + jquery for general development.
Node. js is generally responsible for anything. I read some documents on the Internet and understand it in general.
But who can talk about specific applications. He appeared to solve the previous problems?
What convenience does it take me to use it?
Thanks
Be considerate of new users
Reply content:
We generally use thinkphp + bootstrap + jquery for development.
Node. js is generally responsible for anything. I read some documents on the Internet and understand it in general.
But who can talk about specific applications. He appeared to solve the previous problems?
What convenience does it take me to use it?
Thanks
Be considerate of new users
Node. js uses V8 as the interpreter (ENGINE) of JavaScript, allowing JavaScript to run independently of the browser. V8 is maintained by Google and is also the JavaScript engine of Chromium/Chrome, but it has no obvious relationship with Webkit.
Besides V8, Node. js has a module mechanism compatible with CommonJS to help developers organize code. Node. js has built-in common server-side programming modules and provides a set of C/C ++ APIs to allow developers to Expand functions for Node. js.
Node. js absorbs the "Event Callback-based asynchronous single-thread IO" model from the Web Front-end. This model is used for almost all libraries, including built-in modules, therefore, the concurrency performance is better.
Node. js has done a lot of work, making it based on Node. javaScript applications written in js and C/C ++ modules can run on mainstream operating systems, including Linux, Windows, and OS X.
For front-end developers, Node. js has several meanings. First, you can use JavaScript to write some simple back-end projects. If you build a real practical project, you also need to learn a lot of new knowledge, so it doesn't mean you have Node. js, the front-end can grab the job of the back-end.
2. There is a Node. js has created many Web Front-end tools, such as building tools (gulp, bower, etc.) and unit testing tools (mocha, jscoverage, etc.), which can simplify front-end development, reduce repetitive work, and these tools are also written in JavaScript. Front-end programmers can easily customize these tools.
Node. js is a server that allows you to use JS to write server scripts.
Aside from a lot of Existing modules, using JavaScript can be the greatest convenience for front-end developers.
English: http://www.ibm.com/developerworks/cn/opensource/os-nodejs/index.html
Http://en.wikipedia.org/wiki/Node.js.
Nodejs can be an I/O operating system and is used independently of a browser.
In application scenarios, you can build a front-end, Perform engineering management, and write some functional scripts.
Node. js is a backend Javascript runtime environment that implements core modules such as network requests, file operations, streams, and event-driven...
Node. js uses event-driven, asynchronous I/O, and is born for High-concurrency network services.
Asynchronous programming style and Javascript syntax may be too unrestrained, but there is no shortage of anyone in the world. You can use the process control modules such as async. js and step. js to make the code elegant.
I have used it to implement log analysis and web page capture, which is indeed much faster than the synchronous method. I pulled out a street, but the problem is that writing is more difficult. In the callback, callback is performed again, long logic makes maintenance difficult
Its code dependency library has to say that it is the best (npm)
Node. for those who have just entered the frontend, the biggest advantage of js is the use of Node-based. js tools, such as grunt, glup, npm, and various plug-ins. Recently, atom released by Github is also based on Node
Furthermore, I found that the existing things could not meet the needs of my team. I tried to write and learn node. I think this is a direction.
Of course, for large companies, you may be able to use Node's non-blocking features to do some file servers and so on, more interesting server-side things.
For those who want to learn about Nodejs, it may be the best solution to use nodejs-based tools in depth.
I have been watching node. js for the last few months.
What is node. js used for? The javascript code can run on the server and the server program.
It's a bit like tomcat and IIs. Of course node. js is different from them.
I am also drunk when I say node. js is a language, although I do not understand it.
By looking at the Running code of node. js, I found that this is not javascript.
As for how to use it, read a book. If you really want to learn it, read a large string of code.