- Node.js Web Development
- David Herron
- 213字
- 2021-06-25 21:53:54
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The http object encapsulates the HTTP protocol, and its http.createServer method creates a whole web server, listening on the port specified in the listen method."
A block of code is set as follows:
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(8124, "127.0.0.1"); console.log('Server running at http://127.0.0.1:8124/');
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if (urlP.query['n']) { fibonacciAsync(urlP.query['n'], fibo => {
res.end('Fibonacci '+ urlP.query['n'] +'='+ fibo);
});
} else {
Any command-line input or output is written as follows:
$ node --version v8.9.1
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "In the Start menu, enter PowerShell in the applications search box."
Warnings or important notes appear like this.
Tips and tricks appear like this.
- Magento 2 Theme Design(Second Edition)
- Android 9 Development Cookbook(Third Edition)
- Web全棧工程師的自我修養(yǎng)
- Learning Probabilistic Graphical Models in R
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開發(fā)入門與實(shí)戰(zhàn)
- Clojure for Machine Learning
- Android應(yīng)用開發(fā)深入學(xué)習(xí)實(shí)錄
- C編程技巧:117個問題解決方案示例
- TypeScript 2.x By Example
- Exploring SE for Android
- 多媒體技術(shù)及應(yīng)用
- Java設(shè)計模式深入研究
- Python數(shù)據(jù)可視化之matplotlib實(shí)踐
- 計算機(jī)軟件項(xiàng)目實(shí)訓(xùn)指導(dǎo)
- MATLAB從入門到精通