This article mainly introduces the parsing of Node. js Code deployment method based on modules and packages. As a JavaScript interpreter serving the local operating system, Node adopts a concise deployment method based on the module and package concepts, for more information, see
Module path parsing rules
Experienced C programmers first write from the make file
[Node. js learning] -- (1) -- HelloWord, node. js -- helloword
Today, I practiced an entry-level case of nodejs, which is very lightweight and fast!
Official Website
Http://nodejs.org/download/
Download
Windows 7 64-bit download msi installation package:
Http://nodejs.org/dist/v0.12.0/x64/
Node. js blog instance (7) Paging function, node. js Paging
Original tutorial.
Adds the paging function to the homepage and user pages of a blog. Set: up to 10 articles can be displayed on each page of the home page and user page.Here the skip and limit operations of mongodb are used.Open post.
Getting started with Node. js-how to upload a node. js File
Author: zhanhailiang Date:
This article describes how to use Node. js to upload files.
1. initialize the project information: npm init
[root@~/wade/nodejs/nodejs-upload-i
Here we will share with you node. examples of js operations on the mongoDB database, including connecting to the database, inserting data, closing the database, reading data, and inserting data, are very comprehensive. We recommend this to our partners.
Connect to database
The Code is as follows:
Var mongo = require ("mongodb ");Var host = "localhost ";Var port = mongo. Connection. DEFAULT_PORT;Var serve
JS traverses child node search elements and js node search Elements
Function nextChildNode (node, clazz, tagName) {var count = node. childElementCount; for (var I = 0; I
JS search fo
This article mainly introduces how to use VS to develop Node. the js method mainly uses NTVS (Node. jsToolsforVisualStudio). For more information, see NTVS (Node. jsToolsforVisualStudio) is an IDE tool that runs on VS2012 and VS2013. Using this plug-in is undoubtedly a good news for our traditional. net developers to l
Detailed description of custom error types in Node. js and node. js
Preface
In general, few people will consider how to deal with the wrong policies generated by the application. In the debugging process, they simply useconsole.log(‘error')Locating errors is basically enough. By leaving this debugging information, we w
As a good Restfull Api, it is not only about the semantics, readability, power, and orthogonal of service URLs, but also about http Status codes. A good Http Status Code gives users a good response, for example, 200 indicates normal success, 201 indicates successful creation, 409 conflict, and 404 resource does not exist. Therefore, we are working on a node-based architecture. node is found in
This article provides a summary of how node. js implements file operations, which is very detailed and comprehensive. I hope you will enjoy Node. js and file operations in the same way as other languages. Not to mention node. in js
The installation of nodejs and framework express in Windows 7 has been popular since its birth. I recently installed an environment to learn about it. The installation steps are simple and simple. I would like to share them with you.
1. install node. js.
Go to the official website: http://www.nodejs.org/download. Select Windows Installer or Windows Installer (. msi) 32-bit to download the installation pack
How to Use jQuery in Node. js and Node. js
Want to use jQuery in NodeJs?
First, install jquery and npm install jquery. The installed version is 3.1.0.
Next, first we will use var $ = require ('jquery ').
Save the following code as app. js
var $ = require('jquery')$("body").a
Node. js crawlers crawl garbled data. node. js crawlers crawl garbled data.
1. Non-UTF-8 page processing.
1. Background
Windows-1251 Encoding
Such as Russian site: https://vk.com/cciinniikk
Shameful discovery is this encoding
Here we mainly talk about the problems of Windows-1251 (cp1251) encoding and UTF-8 encoding.
This article describes how to implement routing in node. js. As the name suggests, routing means that we have different processing methods for different URLs. This article will teach you how to implement routing in node. js. to implement the routing function in js, you can r
This article mainly introduces Node. js uses the dependency injection-related issues and solutions, Node. js is a framework that runs JavaScript applications on the server. If you need JavaScript, refer to the recent introduction. I turn to dependency injection to help you understand the simple way to separate code and
In the professional software development process, no matter what platform language, now UnitTest is required. Node. js has the Assert of built-in. Today, let's take a look at the Node. js unit test. Here we use nodeunit for NPM installation:
Npm install nodeunit-g
Supports command line and browser running. Various ass
Global Object of basic Node. js tutorial, basic node. js tutorial
Global Objects in basic Node. js tutorials
In browser JavaScript, window is usually a global object.
The global Object in
This article mainly introduces Node. stream in js. This article describes what Stream, pipe method, Stream classification, and Readable Stream status switching. For more information, see
What is stream?
When it comes to stream, it involves the concept of * nix: pipeline-In * nix, the stream is implemented in Shell as data that can be bridge through | (pipeline operator, the output (stdout) of a process can
Node. js static file server ultimate version, node. js static ultimate version
First, I would like to thank github for providing the source code on github. Compared with last night's static file server, it is a little more complex and can learn a lot of new things.
The Code contains a fs. stat function and the pipe fun
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.