- JavaScript Mobile Application Development
- Hazem Saleh
- 245字
- 2021-09-03 09:40:50
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
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript(第3版)
- 一步一步學Spring Boot 2:微服務(wù)項目實戰(zhàn)
- Rust Cookbook
- C語言程序設(shè)計案例式教程
- 數(shù)據(jù)結(jié)構(gòu)(C語言)
- Getting Started with Python Data Analysis
- Python算法指南:程序員經(jīng)典算法分析與實現(xiàn)
- C語言程序設(shè)計上機指導(dǎo)與習題解答(第2版)
- 移動互聯(lián)網(wǎng)軟件開發(fā)實驗指導(dǎo)
- Julia 1.0 Programming Complete Reference Guide
- 汽車人機交互界面整合設(shè)計
- Kotlin極簡教程
- HTML+CSS+JavaScript網(wǎng)頁制作:從入門到精通(第4版)
- QlikView Unlocked
- Software Development on the SAP HANA Platform