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

  • KnockoutJS Blueprints
  • Carlo Russo
  • 212字
  • 2021-07-23 20:27:34

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.

主站蜘蛛池模板: 革吉县| 赫章县| 老河口市| 城步| 二连浩特市| 乐山市| 罗源县| 天峨县| 慈溪市| 清水河县| 合山市| 紫阳县| 鸡东县| 茶陵县| 莒南县| 临泉县| 丘北县| 黄山市| 布拖县| 长沙县| 大荔县| 始兴县| 藁城市| 正阳县| 仁布县| 鱼台县| 崇信县| 九龙城区| 北票市| 嘉祥县| 贺州市| 从化市| 大兴区| 新干县| 凯里市| 宜兰市| 大港区| 永登县| 巫山县| 南充市| 太康县|