- Service Worker Development Cookbook
- Sean Amarasinghe
- 158字
- 2021-07-14 10:05:17
Conventions
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, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The skipWaiting()
method is used inside the active event handler, which in turn uses Clients.claim()
."
A block of code is set as follows:
self.oninstall = function(event) { event.waitUntil( fetch(zipURL) .then(function(res) { return res.arrayBuffer(); }) .then(getZipFileReader) .then(cacheFileContents) .then(self.skipWaiting.bind(self)) ); };
Any command-line input or output is written as follows:
$ git add –all $ git commit -m "initial commit" $ git push -u origin master
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes, for example, appear in the text like this: "Finally, in the sidebar on the left-hand side, select Credentials."
推薦閱讀
- Unity 2020 By Example
- 國際大學(xué)生程序設(shè)計競賽中山大學(xué)內(nèi)部選拔真題解(二)
- Interactive Data Visualization with Python
- Mastering PHP Design Patterns
- 小程序開發(fā)原理與實戰(zhàn)
- Python完全自學(xué)教程
- 程序是怎樣跑起來的(第3版)
- Spring+Spring MVC+MyBatis整合開發(fā)實戰(zhàn)
- .NET 3.5編程
- Learning JavaScript Data Structures and Algorithms
- 深入理解Android:Wi-Fi、NFC和GPS卷
- C++從入門到精通(第5版)
- Getting Started with Python
- Appcelerator Titanium:Patterns and Best Practices
- INSTANT Premium Drupal Themes