Node:
1. "Introduction to nodejs", only 38 pages, very good, do the project in the book, learn the basics
2. "nodejs development guide". More than 180 pages, very good, let's do the project in the book, know the basics, and basic cooperation with express, jquery, bootstrap, database MongoDB, and
some node implementations Some changes in the examples in the book are implemented using Express3.0
3. Start to see the creation of express The source code of the initial project is compared with the book in 2, and new features are found after the update of express: Migrating from 3.x to 4.x · strongloop/express Wiki · GitHub
to see the official website of express api
English: Express 4.x - API Reference
Chinese: Express - api reference
4. Later found, a series of courses, starting from scratch nodejs series articles: starting from scratch nodejs series articles
Among them : Node.js development framework Express4.x: Node.js development framework Express4.x, which introduces in detail The basic content of the express4 project is very good.
Article : Connecting MySQL with Nodejs: Connecting MySQL with Nodejs, introducing the basics of mysql and node, and solutions to node problems such as database connection pool, downtime, connection timeout, etc. The official website of node-mysql also has corresponding English solutions Method
5.node+json: How to create and parse JSON format files in node.js?
A more complete one is How to parse JSON using Node.js? But pay attention to if you require json, load it only once, and then use it after updating, it may still be
a problem that the old version of json is not easy to view: reading and writing JSON files · Issue # 73 · zhanhongtao/blog · GitHub
6.node mail verification: Nodejs mailing component Nodemailer
chooses the appropriate Node.js authorization and authentication strategy
7. Very complete node module Modules · joyent/node Wiki · GitHub
8. File operations, or official documents : File System Node.js v0.12.2 Manual & Documentation,
or node basics - file system node.js file operations, there is one thing to pay attention to when storing files, such as writefile write path to use path.join(__dirname, "relative to Current file path"); such as path.join(__dirname, "../upload/recordList/" + generateID("record") + ".json");, the backend should use this dirname form, and the frontend can directly Write the form
node+express relative to the current file path
1. Overall introduction to the framework Express framework - JavaScript standard reference tutorial (alpha)
2. Express value: use NodeJS + Express to get the value from GET/POST Request
3.session+cookie: node.js web development: EXPRESS 4.x and above using session and cookie record
session express-session official website npmjs.com page
Node.js Express from entry to rookie (2) - Cookie +Session+ three-layer construction
express 4.2.0 Use session and cookies
to use session for login control in Express After
removing the flash, you can only use session, set req.session.error to null at the beginning of each post, and then, during the verification process, Check the error and then set req.session.error, and then check whether the error is null according to the result of redirection, to decide whether to display
the node session saves only the intermediate key-value pair, no matter it is assigned to res.locals.user, etc., it is not an object, it needs to be The method can only be called by regenerating the object in the middleware. Of course, if you only use attribute values, you do not need
4.Express basic middleware official website: senchalabs/connect GitHub
node+mysql
1.node uses the mysql official website: felixge/ node-mysql · GitHub
2.Nodejs study notes (4)---Interact with MySQL (felixge/node-mysql)
3. Connect MySQL with Nodejs
4. MySQL paging of paging of three common databases (Oracle, MySQL, SQLServer)
5. Sq statement pay attention to the order, order by group by limit.. Generally placed behind where
express+ejs
1. EJS learning summary - bimonthly to the sky Personal space
2. Quick start
of EJS template 3. The use of nodejs express template (template) (ejs + express)_node.js Notes
4. Ejs my summary:
ejs writing method:
common pass in and use variables:
common for executes js code ( The code in the middle of the for must be executed):
·
The js code of the special if statement (the code in the middle of the if may not be executed):
class="active"
>
jquery 1.jQuery
tutorial
2.jQuery tool method - JavaScript standard Reference tutorial (alpha)
3. Online documentation - jquery 4. jQuery
design ideas!!
jquery ui 1.
jQuery UI
2. Chinese API: http://www.css88.com/jquery-ui-api/ 3. jQuery
UI example
4.jqueryrain God Station: tabs: 80+ Best jQuery Tabs with Examples
js tree Library: 15+ jQuery Treeview Plugin & jQuery Tree with Example
jsTree
Bootstrap:
1. Basic CSS Style Bootstrap v2
2. Global CSS Style Bootstrap Chinese Documentation v3
3. Bootstrap row and other offsets - 20px
4. Supplement: Learning Twitter Bootstrap is no longer difficult: upgrade from 2.x to 3.0 version
html5
1. drag: library: interact.js - JavaScript drag and drop, resizing and gestures with inertia and snappingDragdealer.js Tutorial: HTML5 drag & drop HTML5 drag & drop Introduction to drag and drop « Zhang Xinxu git
: 1.Git
: common solutions to code conflicts It is very clear to solve the problem of multiple ssh keys locally
The method in the object prototype, the method used for each different object instance
2. The 4 methods of Javascript asynchronous programming should be written as return callback() as much as possible 3. The determination of the JS
object type
If you need to dynamically determine attributes, you can use object['dynamic'+pro] to dynamically get attributes, including session, although it is a key-value pair, but this can also be
json:
1.jquery operation: read json file in jQuery, back-
end update front-end :
1. How to use JavaScript to update the data changes in the background of the website to the front end in real time? - Front-end development
2. Socket.io online chat room
3. Take the second step of nodejs, build a websocket chat room with nodejs+
socket.io4 .Using Node.js to implement data push
5.Automattic/socket.io · GitHub
6.Nodejs implements 4 ways of websocket RESTFul
:
1.Pixelhandler's Blog 2.Understanding
RESTful architecture
Miscellaneous :
1. passportJS configuration user authentication: PassportJS configuration failed: req.user undefined
Passport | Configure
2. Callback function: The callback function is placed in the parameter list of another function (such as parent), passed to the parent as a parameter, and then executed at a certain position in the parent function body. Understand callback functions in javascript (callback)_javascript tricks
3. Req.flsah() which is no longer used: problems encountered after the express version update flash()
4. app.locals and res.locals Turing community: read: express Configuration items more 5.Crypto
encryption and decryption: Node.js encryption algorithm library Crypto 6.How
to use percentage to set page Div height in CSS? - Front-end development .Progressive enhancement for file upload Drag upload js library: Dropzone.js 9.js diagram Requirements diagram: JointJS - the HTML 5 JavaScript diagramming library. http://gojs.net/latest/index.html 10js Web analytics: Google Analytics Official Website 11.js network diagram, timeline, 2d, 3d library: vis.js - A dynamic, browser based visualization library.
12.js fileManager: 10 jQuery Based File Manager Plugins
Online rich text editor: RESPONSIVE filemanager 9.9.2 (php tinyMCE)
Recommended: Redactor Plugins is lightweight and beautiful
13. Small: file explore: Kloudless/file-explorer GitHub: Yes Realize uploading from multiple places, select files
Cute File Browser with jQuery and PHP Beautiful and lightweight but requires jquery ajax php
14. js tree library: 15+ jQuery Treeview Plugin & jQuery Tree with Example
jsTree
15. messageBox notification box js library: Bootbox. js—alert, confirm and flexible modal dialogs for the Bootstrap framework
16. [css] usage of clear floating (clearfix and clear)
Six types of horizontal centering of elements
17.button css library: Buttons - a highly customizable button (button) CSS style library.
18. Html solves the problem that long strings of English letters cannot be automatically wrapped
19. Non-input elements use methods such as focus: let the element gain focus
20. When uploading text files etc. in the form at the same time, remember to set enctype="multipart/form-data" for the form, otherwise the data may not be available, there is another one, ajax transmission data, remember to set the data-type to json, especially jstree Use ajax to transfer nodes
21. Multi-file, multi-image upload preview, progress, etc., you can use webuploader, busboy, etc.
22. busboy nodejs+busboy to achieve file upload https://www.npmjs.com/package/busboy
23. Front-end font: Font selection_There is a font library 24.$('#btn').on('click',function(e){ e.preventDefaults(); or return false; }) can prevent the submission of 24.404 not found pages
before the form is submitted
I have never seen the design. It turns out that the 404 error page can be designed like this.
25. Read local files written in JavaScript FileReader - Web API interface to read and write client local files
26. Send ajax when the page exits under chrome:
$(window).on ('beforeunload', function ()
{
//this will work only for Chrome
$.ajax({
type:'GET',
url:'/ajaxRequest/myClassesOfteacherclose',
async:false
});
});
27. The
following calculate
spaces Best Practices 2. HTML 5 Application Caching 3. Lazy Load Plugin for jQuery
How to learn Node.js systematically?
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326286035&siteId=291194637
Ranking