官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: " In order to create the server we need the http module."

A block of code is set as follows:

    var http = require('http');
        http.createServer(function (request, response) {
        response.writeHead(200, {'Content-Type': 'text/html'}); 
        response.end('Woohoo!');
        }).listen(8080);

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

      var http = require('http');
        var path = require('path'); 
        http.createServer(function (request, response) {
        var lookup=path.basename(decodeURI(request.url)); 

Any command-line input or output is written as follows:

sudo npm -g install express 

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "We could make it possible for a hypothetical user to indicate if they were inspired by a quote, such as a Like button."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 牡丹江市| 南江县| 江口县| 乌苏市| 连云港市| 延川县| 鲜城| 响水县| 集贤县| 行唐县| 呼伦贝尔市| 桓仁| 辽阳市| 靖江市| 祁门县| 阜南县| 西乌珠穆沁旗| 攀枝花市| 上林县| 胶州市| 寻乌县| 长兴县| 闽清县| 商水县| 故城县| 志丹县| 秭归县| 文登市| 隆德县| 普宁市| 兴业县| 金湖县| 玉林市| 昌乐县| 交城县| 治县。| 三都| 恩施市| 方城县| 萝北县| 湘潭市|