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

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.

主站蜘蛛池模板: 综艺| 庆城县| 沾益县| 长治县| 大邑县| 缙云县| 大丰市| 彰化市| 临沧市| 南陵县| 蓬安县| 库伦旗| 灵川县| 莫力| 曲沃县| 孝感市| 道孚县| 肃宁县| 仪征市| 义马市| 望都县| 武平县| 澳门| 庆云县| 阜城县| 辰溪县| 昭觉县| 洛南县| 固原市| 晋城| 饶河县| 闽侯县| 仪征市| 尚志市| 屏边| 万山特区| 阜新市| 五台县| 探索| 石屏县| 铅山县|