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

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, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "This js directory also includes the common.js file that includes the common app utilities."

A block of code is set as follows:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.jsmobile.soundrecorder" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>SoundRecorder</name>
<description>
        A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" >
        Apache Cordova Team
</author>
<content src="index.html" />
<access origin="*" />
</widget>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

 (function() {
   
    var memoManager = MemoManager.getInstance();
    var recInterval;
   
    $(document).on("pageinit", "#memoCapture", function(e) {        
 $("#saveMemo").on("tap", function(e) {
 e.preventDefault();
 
 var memoItem = new MemoItem({
 "type": $("#mtype").val(),
 "title": $("#title").val() || "Untitled",
 "desc": $("#desc").val() || "", 
 "location": $("#location").val() || "",
 "mtime": $("#mtime").html() || new Date().toLocaleString(),
 "id": $("#mid").val() || null
 });
 
 memoManager.saveMemo(memoItem);
 
 $.mobile.changePage("#memoList");
 });
   
        // ...
    });
})();

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

> sudo npm install -g cordova

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: "Once you are done, click on the Stop Recording button to finish recording."

Note

Warnings or important notes appear in a box like this

Tip

Tips and tricks appear like this

主站蜘蛛池模板: 屏东县| 东平县| 筠连县| 庄浪县| 平顶山市| 筠连县| 松江区| 新乡县| 大理市| 阿尔山市| 西安市| 磴口县| 洪雅县| 裕民县| 偃师市| 玛曲县| 廊坊市| 阳谷县| 阿瓦提县| 黎城县| 武宁县| 清丰县| 都安| 邯郸市| 和顺县| 大兴区| 徐水县| 江川县| 贵南县| 华蓥市| 龙南县| 满城县| 白河县| 扶绥县| 沅陵县| 德江县| 安阳县| 剑川县| 建宁县| 襄汾县| 高要市|