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

Conventions used

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, database tale names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"This tells npm that our package depends on the URL and express modules."

A block of code is set as follows:

router.get('/v1/item/:itemId', function(request, response, next) {
console.log(request.url + ' : querying for ' + request.params.itemId);
catalogV1.findItemById(request.params.itemId, response);
});

router.get('/v1/:categoryId', function(request, response, next) {
console.log(request.url + ' : querying for ' + request.params.categoryId);
catalogV1.findItemsByCategory(request.params.categoryId, response);
});

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

router.get('/v1/:categoryId', function(request, response, next) {
console.log(request.url + ' : querying for ' + request.params.categoryId);
catalogV1.findItemsByCategory(request.params.categoryId, response);
});

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

$ npm install -g express

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:

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 扎赉特旗| 洪洞县| 鄂托克前旗| 丽江市| 长宁区| 宜昌市| 军事| 上蔡县| 鸡泽县| 镇坪县| 井研县| 河曲县| 邢台县| 永宁县| 台江县| 高台县| 九龙坡区| 安康市| 利川市| 广昌县| 富平县| 青海省| 荔浦县| 青冈县| 璧山县| 滦南县| 常德市| 溧水县| 阳江市| 浮山县| 新野县| 文水县| 社旗县| 杭锦后旗| 巴青县| 东源县| 新竹县| 云霄县| 天柱县| 从江县| 灵台县|