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

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.

主站蜘蛛池模板: 兰西县| 阳东县| 长宁区| 义马市| 沐川县| 喀什市| 仙游县| 共和县| 昆山市| 新邵县| 铁岭县| 诸城市| 凌云县| 新晃| 万年县| 梁平县| 天等县| 增城市| 无极县| 天门市| 汝城县| 榆社县| 丁青县| 霍山县| 运城市| 鄂伦春自治旗| 威信县| 涟水县| 崇左市| 清河县| 郯城县| 册亨县| 东阳市| 屏南县| 禹城市| 闽侯县| 监利县| 罗甸县| 辽宁省| 手机| 乌什县|