關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK

Similar documents
關於本書 Part 3 CSS XHTML Ajax Part 4 HTML 5 API JavaScript HTML 5 API Canvas API ( ) Video/Audio API ( ) Drag and Drop API ( ) Geolocation API ( ) Part 5

5-1 nav css 5-2

05 01 accordion UI containers 03 Accordion accordion UI accordion 54

互動網頁技術系列課程 HTML與CSS網站基礎設計 [12pt]

Microsoft PowerPoint - 12 jQuery Mobile 事件處理方式

Chapter V.S. PC

本 课 程 作 为 非 计 算 机 专 业 本 科 通 识 课 程, 是 一 门 理 论 和 实 践 紧 密 结 合 的 实 用 课 程, 内 容 包 括 计 算 机 基 础 部 分 和 程 序 设 计 部 分 计 算 机 基 础 部 分 涵 盖 计 算 机 软 硬 件 组 成 数 制 表 示 操

chapter 2 HTML5 目錄iii HTML HTML HTML HTML HTML canvas

Microsoft Word - 最新正文.doc

Microsoft Word PHPCh15.docx

bootstrap - 2

Microsoft Word - PHP7Ch01.docx

版权页.indd

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

CH15.indd

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

中国软件2013校园招聘通知

Adobe AIR 安全性

! 2000 CSSsprites.com Web FTP app 20% 80% getelementbyid() UI Facebook F8 Web CSSsprites.com Web JavaScript CSS React xi React UI UI 反應 UI 宣告 d

untitled

財金資訊-83期.indd

skta00013_read.pdf

Microsoft Word - 改版式网页全文.doc

中南大学第二届软件创新大赛

1. 2. Flex Adobe 3.

導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式

Mocat

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b

Secoway SVN3000技术建议书V1

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工

final

untitled

29 知 識 管 理 c.1 1 樓 新 到 館 圖 書 區 30 知 識 管 理 c.2 1 樓 新 到 館 圖 書 區 31 編 劇 與 腳 本 設 計

RUN_PC連載_8_.doc

無障礙網頁開發規範二版(草案)

目 录 第 一 章 调 查 介 绍 调 查 方 法 调 查 对 象 调 查 规 模 调 查 方 式 调 查 内 容 术 语 界 定... 4 第 二 章 报 告 概

HTML5 + PhoneGap + Android

可 Web 编程的NativeUI 设计与实现

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener

(一)工務類:專業

学 院 人 才 培 养 分 项 自 评 报 告 结 果 汇 总 表 主 要 评 估 指 标 关 键 评 估 要 素 自 评 等 级 1.1 学 校 事 业 发 展 规 划 合 格 1. 领 导 作 用 1.2 办 学 目 标 与 定 位 合 格 1.3 对 人 才 培 养 重 视 程 度 合 格 1

Microsoft Word - Ch06.docx

FileMaker 15 WebDirect 指南

目 录

BlackBerry Classic Smartphone-用户指南

Microsoft Word - 01.DOC

跨領域學位學程

總行總務室

目 录 第 五 部 分 第 六 部 分 第 七 部 分 第 八 部 分 投 标 邀 请 投 标 人 须 知 附 表 评 标 方 法 和 评 分 细 则 项 目 需 求 和 技 术 方 案 要 求 1

摘 要 本 校 多 媒 體 設 計 系 與 上 海 戲 劇 學 院 創 意 學 院 在 多 次 聯 繫 交 流 之 下, 已 簽 署 合 作 備 忘 錄, 積 極 尋 求 兩 校 合 作 教 學 與 共 同 創 作 之 機 會 藉 由 本 系 學 生 作 品 腦 殘 公 寓 入 圍 第 五 屆 中

等 特 定 服 务 换 句 话 说, 设 备 的 可 能 用 途 取 决 于 在 用 户 购 买 它 时 预 先 安 装 的 应 用 程 序 这 在 新 移 动 设 备 中 发 生 了 巨 大 变 化, 新 移 动 设 备 几 乎 是 各 种 使 用 模 型 的 一 个 入 口 所 有 参 与 方,

投影片 1

中国ICT市场及重点行业月度报告

状 态, 规 划 车 辆 行 驶 路 径, 可 进 入 网 站 充 电 服 务 栏 目 (2) 查 询 位 置 联 系 方 式 营 业 时 间 等 信 息, 可 进 入 网 站 服 务 指 南 栏 目 建 议 您 出 行 前 通 过 易 充 电 互 动 网 站 提 前 了 解 所 经 高 速 快 充

The Applicibility of Google Maps/Earth and Urmap API to Real Estate Database* Jin-Tsong Hwang** Abstract Whether the real estate market is prosperous

科大讯飞分析

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费

jQuery Mobile

Microsoft Word zw

<4D F736F F D20312D3120D5D0B9C9CBB5C3F7CAE9A3A8C9CFBBE1B8E5A3A92E646F63>

暴风云视点播解决方案

南京市人才服务中心

申 请 者 的 承 诺 : 我 承 诺 对 本 人 填 写 的 各 项 内 容 的 真 实 性 负 责, 保 证 没 有 知 识 产 权 争 议 如 获 准 立 项, 本 表 为 有 约 束 力 的 协 议, 遵 守 广 东 省 教 育 科 学 规 划 领 导 小 组 办 公 室 的 有 关 规 定

Microsoft Word - 第01章new.doc

Microsoft Word - ch02.doc

吉林省科技发展计划项目申报书23005

<4D F736F F D20312D3120B9ABBFAAD7AAC8C3CBB5C3F7CAE92D2DD5C6B9F1C8EDBCFEA3A8D0DEB8C4B0E6A3A9>

(CIP) Web /,. :, ISBN X.W T P393.4 CIP (2004) Web ( ) ( / ) : * 787

浪潮集团信息化文案

jQuery

Microsoft PowerPoint - 14 jQuery App 開發

A-2 l 跨裝置網頁設計 A-1 <frameset> <frame> <noframes> (frame) HTML (navigation bar)

HTML5 & CSS3 色彩 背景與漸層屬性 12-1 (color property) CSS 3 color HTML opacity HTML CSS Color Module Level 3 W3C CSS

目 录 简 介.3 ` 体 系 结 构...4 数 据 层...5 数 据 连 接 器...6 Tableau Server 组 件...7 网 关 / 负 载 平 衡 器...8 客 户 端 :Web 浏 览 器 和 移 动 应 用 程 序...8 客 户 端 :Tableau Desktop..

RUN_PC連載_10_.doc

目 录 目 录 平 台 概 述 技 术 架 构 技 术 特 点 基 于 统 一 平 台 的 多 产 品 线 支 撑 先 进 性 安 全 性 开 放 性 高 性 能 和

《linux从入门到精通》实验指导第三讲:文件及目录操作

清华大学2013年毕业生就业质量报告

PowerPoint プレゼンテーション

WordPress OSSF OSSF is Seeking Software Freedom 1 blog WordPress WordPress WordPress WordPress 2 WordPress WordPress is a state-of-the-art semantic pe

數位圖書館/博物館相關標準 2

付宝容器 jsapi 档 册 PDF 版本 本版本为实验版本, 为线下独 查看使, 受制于 成 PDF 程序的限制, 样式问题还没有很好的解决, 例如分 切图 代码 亮 推荐使 在线版本, 便实时查看 jsapi 运 效果 如需搜索, 使 阅读 PDF 软件 带功能即可 更多细节样式调整和 录索引探

2005 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / Sun Sun Microsystems Su

Azure_s

Microsoft Word htm

职 位 类 别 : 测 试 工 程 师 工 作 经 验 或 实 习 经 历 : 不 限 岗 位 要 求 : 1. 本 科 及 其 以 上 学 历, 计 算 机 相 关 专 业 2014 届 毕 业 生 ; 2. 实 习 时 间 要 求, 尽 量 一 周 五 个 工 作 日 ; 3. 熟 悉 Wind

untitled

老码农原创小说《码农故事》


教学〔2016〕120号

WinMDI 28

安友医疗科技(武汉)有限责任公司

Microsoft Word - 104決算總說明_一__彙整_02.03主秘版.doc

(Guangzhou) AIT Co, Ltd V 110V [ ]! 2

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

目 录 一 电 子 书 包 账 号 使 用 问 题... 3 二 电 子 书 包 功 能 使 用 问 题... 5 三 数 据 库 使 用 问 题... 7 四 教 材 书 籍 相 关 问 题... 8 五 联 系 我 们 客 服 热 线 : 客 服 QQ: 微

vi JSON JSON API XML JSON JSON JavaScript RESTful JSON Douglas Crockford JSON / RESTful API JavaScript Node.js Ruby on Rails Java Groovy


untitled


Transcription:

2 l 跨裝置網頁設計 Android ios Windows 8 BlackBerry OS Android HTML 5 HTML 5 HTML 4.01 HTML 5 <article> <section> <nav> <header> <footer> <video> <audio> <canvas> CSS 3 CSS 3 CSS 2.01 CSS 3 2D/3D PC JavaScript JavaScript JavaScript JavaScript JavaScript DOM window document element jquery Mobile jquery Mobile jquery Mobile UI

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK ios SDK App A PDF ( ) http://books.gotop.com.tw/download/acl039600 HTML CSS JavaScript HTML CSS JavaScript bgcolor="#rrggbb" rrggbb RGB [] font-family: 1[, 2] [, 2] font-style:normal italic oblique font-style normal italic oblique PowerPoint http://www.gotop.com.tw/ (02)2788-2408 (04)2452-7051 (06)270-8568 (07)384-7699

19 Chapter jquery Mobile API 19-1 jquery Mobile 19-2 jquery Mobile 19-3

19-2 l 跨裝置網頁設計 19-1 jquery Mobile jquery Mobile $.mobile JavaScript API API jquery Mobile framework ( jquery Mobile http://api.jquerymobile.com/ category/methods/ ) 19-1-1 jquery.mobile.changepage() jquery.mobile.changepage(to [, options]) to to URL "a.html" jquery $("#pageid") $ jquery $() jquery jquery to "#pageid" options options allowsamepagetransition (default:false) changehash (default:true) data (default:undefined) dataurl (default:undefined) changepage() true false Ajax changepage() to URL changepage() URL pagecontainer (default: jquery $.mobile.pagecontainer) <body>

jquery Mobile API l 19-3 reloadpage (default:false) reverse (default:false) role (default:undefined) showloadmsg (default:true) transition (default: $.mobile. defaultpagetransition) type (default:"get") false ( ) data-role HTTP method "get" "post" ( 19 ) jqmui1.html ( 12 ) 01:<!doctype html> 02:<html> 03: <head> 04: <meta charset="utf-8"> 05: <title> jquery Mobile </title> 06: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> 07: <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 08: <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> 09: <meta name="viewport" content="width=device-width, initial-scale=1"> 10: <script> 11: function piece(){ 12: $.mobile.changepage("jqmui1.html", {transition: "slideup", changehash: false}); 13: } a b c d 14: </script> 15: </head> 16: <body> 17: <div data-role="page" id="page1"> 18: <div data-role="content"> 19: <a href="javascript:piece();" data-role="button"> </a> 20: </div> 21: </div> a $ jquery 22: </body> 23:</html> <\Ch19\jQMAPI1.html> b URL c ( ) d

19-4 l 跨裝置網頁設計 1 2 1 2 results.php id "search" HTTP method "post" $.mobile.changepage("results.php", { type: "post", data: $("form#search").serialize(), changehash: false }); jquery Mobile jquery.mobile.loadpage() DOM (Document Object Model) ( ) jquery.mobile.loadpage(url [, options]) url URL "a.html" options jquery.mobile.changepage() changepage() URL loadpage()

jquery Mobile API l 19-5 19-1-2 URL jquery.mobile.path.get() URL url URL jquery.mobile.path.get(url) URL "http://www.lucky.com/ Books" ( $ jquery ) $.mobile.path.get("http://www.lucky.com/books/css3.html") 19-1-3 URL jquery.mobile.path.isabsoluteurl() URL true false url URL jquery.mobile.path.isabsoluteurl(url) true false $.mobile.path.isabsoluteurl("http://www.lucky.com/books/css3.html") // true $.mobile.path.isabsoluteurl("css3.html") // false 19-1-4 URL jquery.mobile.path.isrelativeurl() URL true false url URL jquery.mobile.path.isrelativeurl(url) false true $.mobile.path.isrelativeurl("http://www.lucky.com/books/css3.html") // false $.mobile.path.isrelativeurl("css3.html") // true

19-6 l 跨裝置網頁設計 19-1-5 URL jquery.mobile.path.parseurl() URL url URL jquery.mobile.path.parseurl(url) url URL JavaScript location hash host URL # # URL hostname href pathname port protocol search authority directory domain filename hrefnohash hrefnosearch password username URL URL URL URL URL : URL?? URL URL URL hash URL search authority authority parseurl() URL host protocol directory filename search

jquery Mobile API l 19-7 <!doctype html> <html> <head> <meta charset="utf-8"> <title> jquery Mobile </title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <div data-role="page" id="page1"> <div data-role="content"> <script> var obj = $.mobile.path.parseurl("http://www.arts.idv.tw/~jean/test.html?number=100"); window.document.write("host " + obj.host + "<br>"); window.document.write("protocol " + obj.protocol + "<br>"); window.document.write("directory " + obj.directory + "<br>"); window.document.write("filename " + obj.filename + "<br>"); window.document.write("search " + obj.search + "<br>"); </script> </div> </div> </body> </html> <\Ch19\jQMAPI2.html>

19-8 l 跨裝置網頁設計 19-1-6 jquery.mobile.path.makeurlabsolute() relurl absurl relurl absurl jquery.mobile.path.makeurlabsolute(relurl, absurl) "CSS3.html" "http://www.lucky.com/books/" "http://www.lucky.com/books/css3.html" $.mobile.path.makeurlabsolute("css3.html", "http://www.lucky.com/books/") "CSS3.html" "/x/y/z/jquery.html" "/x/y/z/css3.html" $.mobile.path.makeurlabsolute("css3.html", "/x/y/z/jquery.html") "../CSS3.html" "/x/y/z/jquery.html" "/x/y/css3.html" $.mobile.path.makeurlabsolute("../css3.html", "/x/y/z/jquery.html") 19-1-7 jquery.mobile.silentscroll() Y scroll ypos Y 0 jquery.mobile.silentscroll(ypos) Y 100 $.mobile.silentscroll(100)

jquery Mobile API l 19-9 備註 jquery DOM jquery JavaScript $( ).method( ); $ jquery $() jquery (selector) DOM id "orientation" jquery text() $("#orientation").text(" portrait "); jquery $("*") $('*') id $("#btn1") id "btn1" class $(".heading") class "heading" HTML $("h1") <h1> HTML $("div p") <div> <p> jquery DOM html( ) DOM HTML text( ) DOM append( ) HTML prepend( ) HTML remove( ) DOM

19-10 l 跨裝置網頁設計 19-2 jquery Mobile 16-7 HTML 5 DOM jquery Mobile ypagebeforecreate ypagecreate DOM ( Ajax ) (widget) ypageinit ypagebeforeload ypageload DOM ypageloadfailed ypageremove jquery Mobile framework DOM ypagebeforechange ypagechange changepage() DOM ypagechangefailed changepage() ypagebeforeshow ypageshow ypagebeforehide ypagehide

jquery Mobile API l 19-11 yswipe 30 ( 75 ) yswipeleft swipe yswiperight swipe ytap ytaphold yorientationchange yscrollstart yscrollstop yvclick click ( ) yvmousecancel mousecancel. yvmousedown mousedown yvmousemove mousemove yvmouseout mouseout yvmouseover mouseover yvmouseup mouseup yupdatelayout

19-12 l 跨裝置網頁設計 orientationchange portrait landscape ( jquery Mobile http://api.jquerymobile.com/category/ events/ ) 01:<!doctype html> 02:<html> 03: <head> 04: <meta charset="utf-8"> 05: <title> jquery Mobile </title> 06: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> 07: <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 08: <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> 09: <meta name="viewport" content="width=device-width, initial-scale=1"> 10: </head> 11: <body> 12: <div data-role="page" id="page1"> <\Ch19\jQMEvt1.html> ( 1/2)

jquery Mobile API l 19-13 13: <div data-role="content"> 14: <h3 id="orientation"> orientationchange </h3> 15: <div> 16: </div> 17: <script> 18: // orientationchange 19: $(window).on("orientationchange", function(event) { 20: $("#orientation").text(" " + event.orientation + " "); 21: }); 22: // orientationchange 23: $(window).orientationchange(); 24: </script> 25: </body> 26:</html> <\Ch19\jQMEvt1.html >( 2/2) 19 ~ 21 jquery on() orientationchange id "orientation" event orientation "portrait" "landscape" on() jquery 1.7 bind() live() bind() DOM DOM live() 20 id "orientation" jquery text() 23 jquery orientationchange() orientationchange 19 ~ 21 orientationchange id "orientation" <h3> portrait landscape 14 orientationchange

19-14 l 跨裝置網頁設計 pagebeforecreate 01:<!doctype html> 02:<html> 03: <head> 04: <meta charset="utf-8"> 05: <title> jquery Mobile </title> 06: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> 07: <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 08: <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> 09: <meta name="viewport" content="width=device-width, initial-scale=1"> 10: </head> 11: <body> 12: <div data-role="page" id="page1"> 13: <script> 14: $("#page1").on("pagebeforecreate", function(event) { 15: $(this).append('<div data-role="header"><h1> </h1></div>'); 16: $(this).append('<div data-role="content"><p> </p></div>'); 17: $(this).append('<div data-role="footer"><h4> </h4></div>'); 18: }); 19: </script> 20: </div> 15 16 17 jquery 21: </body> 22:</html> append() HTML <\Ch19\jQMEvt2.html>

jquery Mobile API l 19-15 19-3 load jquery framework jquery document ready jquery Mobile framework jquery Mobile document mobileinit jquery Mobile framework UI mobileinit mobileinit ready load mobileinit $(document).on("mobileinit", function(){ // }); jquery on() mobileinit jquery framework mobileinit jquery Mobile framework jquery Mobile framework mobileinit jquery framework jquery Mobile framework <head> <meta charset="utf-8"> <title> jquery Mobile </title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script> $(document).on("mobileinit", function(){ // }); </script> <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> </head>

19-16 l 跨裝置網頁設計 "flip" ( ) <!doctype html> <html> <head> <meta charset="utf-8"> <title> jquery Mobile </title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script> $(document).on("mobileinit", function(){ $.mobile.defaultpagetransition="flip"; }); </script> <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> </body> </html> jquery Mobile http://api.jquerymobile.com/global-config/ defaultpagetransition defaultdialogtransition activebtnclass activepageclass ajaxenabled allowcrossdomainpages autoinitializepage minscrollback "fade" "pop" CSS "ui-btn-active" CSS "ui-page-active" Ajax true Ajax false true 250 ( )