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

Conventions

In this book, you will find a number of text styles 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 table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

myViewModel.categories = ko.computed(function() {
  var results = myViewModel.allCategories(),
      filterByCategory = myViewModel.selectedCategory();
  if (filterByCategory) {
    results = ko.utils.arrayFilter(results, function(category) {
      return category.name === filterByCategory;
    });
  }
  return results;
});

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 myViewModel = {
  allCategories: ko.observableArray([]),
  selectedCategory: ko.observable(),
  selectedName: ko.observable("")
}; 

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

# npm install –g http-server

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Here we get the starting page, with an Error loading page."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 会昌县| 封开县| 张家界市| 富宁县| 游戏| 乌兰县| 宜兰县| 昌乐县| 南陵县| 固原市| 平原县| 河曲县| 合作市| 福贡县| 涪陵区| 万全县| 左贡县| 汉川市| 类乌齐县| 海丰县| 镇安县| 平阳县| 东台市| 田东县| 陆川县| 浮山县| 肇州县| 峨眉山市| 虹口区| 葵青区| 盘山县| 景德镇市| 精河县| 隆尧县| 宁都县| 随州市| 原阳县| 广丰县| 青川县| 梁平县| 米易县|