① app html5 原生 怎麼混合開發
可以學習下APICloud,就是用HTML5來開發iOS、Android原生APP,可一套代碼同時生成iOS、Android安裝包。其APP引擎SuperWebView更是促進HTML5、原生融合的超級SDK,在原有的原生APP內,Web開發工程師可以使用APICloud應用的常規開發模式(Sublime Text,WebStorm,Eclipse等+插件),完成Web部分的開發和調試後,在雲端動態編譯生成SuperWebview SDK。Native工程師到APICloud雲端下載集成SuperWebview SDK即可。
APICloud官網有完善的文檔和視頻教程,可以去看看哈
② HTML5瀹氱誇簡 涓轟粈涔堝師鐢烝pp涓栫晫灝嗚棰犺
銆銆2007 騫 W3C (涓囩淮緗戣仈鐩)絝嬮」 HTML5錛岀洿鑷 2014 騫 10 鏈堝簳錛岃繖涓闀胯揪鍏騫寸殑瑙勮寖緇堜簬姝e紡灝佺褲
銆銆榪囧幓榪欎簺騫達紝HTML5 棰犺嗕簡 PC 浜掕仈緗戠殑鏍煎矓錛屼紭鍖栦簡縐誨姩浜掕仈緗戠殑浣撻獙錛屾帴涓嬫潵錛孒TML5 灝嗛犺嗗師鐢 App 涓栫晫銆傝繖鍚璧鋒潵鏈夌偣鍗辮█鑰稿惉錛屼絾鑻ヨょ湡鍒嗘瀽 HTML5 鐨勫彂灞曞彶錛屼綘浼氬彂鐜幫紝榪欎釜涓栫晫鐨勫彂灞曡秼鍔跨『瀹炲氨鏄榪欐牱銆
銆銆鐔熺煡鍘嗗彶鎵嶈兘棰勭煡鏈鏉ワ紝鍏堣╂垜浠鏉ョ湅鐪 HTML5 涓轟粈涔堣癁鐢熴佽繖 8 騫存槸鎬庝箞榪囨潵鐨勩
銆銆涓銆 HTML5 鐨勮癁鐢
銆銆鑷 W3C 浜 1999 騫村彂甯 HTML4 鍚庯紝Web 涓栫晫蹇閫熷彂灞曪紝涓鐗囩箒鑽c備漢浠涓搴﹁や負 HTML 鏍囧噯涓嶉渶瑕佸崌綰т簡銆備竴浜涜嚧鍔涗簬鍙戝睍 Web App 鐨勫叕鍙稿彟琛屾垚絝嬩簡 WHATWG 緇勭粐錛岀洿鍒 2007 騫達紝W3C 浠 WHATWG 鎺ユ墜鐩稿叧宸ヤ綔錛岄噸鏂板紑濮嬪彂灞 HTML5銆
銆銆HTML5 鐨勫彂灞曞彶錛屾湁鐢ㄦ埛鐨勯渶奼傚湪鎺ㄥ姩錛屾湁鎶鏈寮鍙戣呯殑闇奼傚湪鎺ㄥ姩錛屾洿鏈夊法澶х殑鍟嗕笟鍒╃泭鍦ㄦ帹鍔ㄣ
銆銆鍦ㄤ簰鑱旂綉鐨勬棭鏈燂紝瀵圭敤鎴瘋岃█錛岃兘鎵撳紑嫻忚堝櫒鎺ュ叆鍒頒簰鑱旂綉涓栫晫灝辨槸涓涓紲炲囩殑浜嬫儏錛屼絾浜掕仈緗戝彂灞曞埌 2005 騫村墠鍚庯紝寮濮嬪嚭鐜頒笅涓涓鍙樺寲錛屽氨鏄瀹藉甫浜掕仈銆
銆銆闅忕潃瀹藉甫鐨勬櫘鍙婂拰鐢佃剳鎬ц兘鐨勫炲己錛屼漢浠涓嶅啀婊¤凍浜庡崟綰鐨勯氳繃浜掕仈緗戠湅鏂伴椈銆佹敹鍙戦偖浠訛紝娑堣楁洿楂樺甫瀹界殑濞變箰浜у搧寮濮嬪嚭鐜幫紝灝辨槸嫻佽嗛戝拰緗戦〉娓告垙銆傚叾瀹炶嗛戝拰娓告垙鏄鍙よ佺殑闇奼傦紝鍦ㄤ簰鑱旂綉涓嶆櫘鍙婄殑鏃跺欙紝闇奼傜殑婊¤凍鏂瑰紡鏄紱葷嚎浼犺緭鐨 VCD 鍜屾父鎴忓厜鐩;鍚庢潵浜掕仈緗戦愭笎鏅鍙婏紝浜轟滑鏇存敼浜嗕嬌鐢ㄦ柟寮忥紝閫氳繃涓嬭澆杞浠+鏈鍦板獟浣撴挱鏀懼櫒鏉ョ湅瑙嗛戱紝涓嬭澆浣撶Н杈冨ぇ鐨勭娓哥帺娓告垙銆
銆銆浣嗘槸瀵規秷璐硅呬綋楠屾洿濂界殑鏂版柟寮忚繕鏄鍑虹幇騫墮犺嗕簡浠ュ墠鐨勪竴鍒囷紝閭e氨鏄嫻佸獟浣撳拰緗戦〉娓告垙銆俌outube 絳夊叕鍙告妸鎻′綇娼嫻侀為熷礇璧鳳紝鍚勭嶉〉娓稿叕鍙鎬篃濡傞洦鍚庢槬絎嬨
銆銆浣嗘槸 HTML 鏍囧噯娌℃湁鎶婃彙浣忎駭涓氱殑鍙樺寲鍙婃椂婕旇繘錛屾祻瑙堝櫒浜у搧涔熸湭鍗囩駭錛岃繖鍧楁柊闇奼傝嫻忚堝櫒鎻掍歡婊¤凍浜嗭紝閭e氨鏄 Flash銆傝繖涓閮ㄧ講鍦ㄤ嚎涓囨祻瑙堝櫒閲岀殑鍟嗕笟鎻掍歡淇ㄧ劧鎴愪負浜嬪疄鏍囧噯銆2005 騫 Adobe 宸ㄨ祫鏀惰喘 Macromedia錛屾妸 Flash 鏀跺綊鏃椾笅錛岀揣鎺ョ潃澶у箙鎺ㄥ箍 FLV 嫻佸獟浣撳拰 action script 璇璦錛屽緢鏄庢樉榪欐々鏀惰喘鍙浠ュ垪涓 IT 騫惰喘鐨勭粡鍏告堜緥錛孎LV 嫻佸獟浣撳拰 Flash 娓告垙椋庨潯浜掕仈緗戱紝Adobe 鍦ㄦ柊鐨勪駭涓氬崌綰т腑鏀鍙栦簡澶ч噺鐨勫埄娑︺
銆銆闄や簡 Flash 榪欎釜鍟嗕笟浜у搧鎴愪負浜嗕簨瀹炴爣鍑嗭紝W3C 榪橀潰涓翠竴涓灝村艾錛屽氨鏄鍙︿竴涓縐佹湁鎵╁睍鍗忚鐨勫埗閫犺呪擨E銆侷E 褰撴椂鍦ㄦ岄潰嫻忚堝櫒鍗犳湁鍨勬柇鍦頒綅錛屽苟涓旀墿灞曚簡澶ч噺鐨 IE Only 璇娉曪紝寮鍙戣呭畬鍏ㄤ笉鐭ラ亾榪欎簺璇璦鏄璋佸畾涔夌殑銆傛暣涓 web 涓栫晫錛屽氨琚涓ゅ跺叕鍙稿井杞 +Adobe 緇戞灦浜嗐
銆銆寰堝 IT 宸ㄥご閮藉潗涓嶄綇浜嗭紝灝ゅ叾鏄鑻規灉鍜 Google銆侾C 鎿嶄綔緋葷粺鐨勪笘鐣岄毦鏈夌獊鐮達紝Web 嫻忚堝櫒琚鑻規灉瀵勪簣鍘氭湜錛岃屼笖絎涓浠 iPhone 鍙鏀鎸佺綉欏碉紝閭f椂榪樻病鏈 Appstore錛孲afari 鏄涔斿竷鏂闈炲父鐪嬮噸鐨勪駭鍝;鏂拌吹 Google 鉶界劧澶ч噺璧炲姪 Mozilla錛屼絾騫舵湭瀵 IE 鐨勫湴浣嶄駭鐢熷疄璐ㄥ獎鍝嶏紝鏀惰喘浜 YouTube 鍚庡彂鐜板簳灞傝 Adobe 鎺у埗錛屼篃鏄闈炲父闅捐繃錛岃屼笖 Google 姣忓勾緇 IE 鐨勬悳緔㈡嗗拰 Adoble FLV 緙寸撼鐨勮垂鐢ㄧ湡涓嶆槸灝忔暟鐩銆
銆銆鏃㈢劧澶у墮兘鏄 W3C 鐨勪富甯鍗曚綅錛屽ソ鍚э紝鎴戜滑閲嶆柊寮濮嬪仛 HTML5 鍚с
銆銆鏄鐨勶紝HTML5 鍏跺疄灝辨槸榪欎箞璇炵敓鐨勩傞偅鏄 2007 騫達紝IE 鍜 Flash 鐢辯洓杞琛扮殑杞鎶樼偣銆
銆銆浜屻 HTML5 絎涓闃舵碉細 Web 澧炲己涓庣牬鍨勬柇
銆銆鑷 HTML5 璇炵敓浠ユ潵錛屼竴鍏辯粡鍘嗕簡涓や釜闃舵碉紝鍒嗗埆鏄 Web 澧炲己鍜岀Щ鍔ㄤ簰鑱旂綉銆傛垜浠鍏堜粠 Web 澧炲己璇磋搗銆
銆銆web 浣撻獙鐨勪赴瀵屽炲己涓昏佽〃鐜板湪錛1. webapp錛屾瘮濡 gmail;2. 嫻佸獟浣;3. 娓告垙銆傛垜浠灝辮繖 3 涓鏂歸潰鏉ヨ HTML5 鍋氫簡浠涔堛
銆銆1. webApp
銆銆HTML5 鏂板炰簡紱葷嚎瀛樺偍銆佹洿涓板瘜鐨勮〃鍗(姣斿 Input type=date)銆乯s 綰跨▼銆乻ocket 鐜嬩箰銆佹爣鍑嗘墿灞 embed銆佷互鍙婂緢澶 css3 鏂拌娉曗
銆銆2. 嫻佸獟浣
銆銆HTML5 鏂板炰簡 audio銆乿ideo
銆銆3. 娓告垙
銆銆HTML5 鏂板炰簡 canvas銆亀ebgl
銆銆褰撶劧榪樻湁 Google 鍔鍔涘湪 HTML5 涓鎺ㄨ繘 Header 鍜 Section 絳夋爣絳撅紝浠ュ埄浜庢悳緔㈠紩鎿庡垎鏋愶紝榪欎簺涓嶅氳堪銆
銆銆HTML5 琛ュ厖嫻佸獟浣撳拰娓告垙鑳藉姏鍚庯紝鍔犱笂鑻規灉寮哄娍鎷掔粷鍦 iOS 涓婂紩鍏 Flash錛屾垚鍔熺殑閬忓埗浜 Flash 鐨勫彂灞曪紝鐒跺悗灝辮ラ嚲鍒 IE 縐佹湁璇娉曚簡銆
銆銆鍦 HTML5 鏍囧噯鐨勫崌綰ц繃紼嬩腑錛岃嫻鏋滃拰 Google 鍚屾椂涔熺湅鍒頒簡嫻忚堝櫒甯傚満閲嶆柊媧楃墝鐨勬満浼氾紝浠栦滑涓鏂歸潰鍙備笌 HTML5 鐨勮勮寖錛屼竴杈瑰湪嫻忚堝櫒浜у搧涓婂彂鍔涖侫pple 棣栧厛寮濮嬪ぇ鍔涘彂灞 Safari錛屽緩絝 WebKit 寮婧愰」鐩錛孧ac銆乮OS銆乄indows 澶氬鉤鍙伴綈鍙戝姏;Google 璧峰垵鏄璧炲姪 Mozilla 寮鍙 Firefox錛屽悗鏉ヨ嚜宸卞紑鍙戜簡 v8 寮曟搸錛屽悎騫 WebKit錛屼簬 2008 騫存e紡鎺ㄥ嚭 Chrome銆傗淚E 鐨勭佹湁瑙勮寖 +Flash 涓嶆槸鏍囧噯錛屾垜浠鎵嶆槸鏍囧噯鈥濊繖鏍風殑鍙e彿鍦ㄦ柊涓浠f祻瑙堝櫒澶ф垬涓鎵撳搷錛孖E 鐬闂存垚涓哄崈澶鎵鎸囩殑鍨勬柇浠h〃錛岀敋鑷蟲垚浜嗛樆紕 Web 鍙戝睍鐨勭姜浜(褰撴椂 IE6 宸叉暟騫存湭鏇存柊錛屽苟涓斾笣姣涓嶆儳 Firefox 鐨勫彂灞)銆
銆銆鍋忓嚲寰杞姝ゆ椂涔熷嚭浜嗘檿鎷涳紝鎺ㄥ嚭浜嗕竴緋誨垪鍗充笉瀹屾暣鏀鎸佽勮寖鍙堜簰鐩鎬笉鍏煎圭殑 IE7銆8銆9銆10錛屽交搴曞け鍘諱簡寮鍙戣呯殑蹇冦
銆銆Adobe 鐨 Flash 琚閬忓埗錛屼笌 Web 闇鎬富鐨勪綅瀛愭摝鑲╄岃繃;IE 鐨勭佹湁鏍囧噯琚閬忓埗錛屽苟涓旈犳垚 IE 甯傚満浠介濅笉鍋滀笅婊戱紝鐩村埌 IE 鏈鏂扮殑縐誨姩鐗堟湰鍙嶈繃鏉ュ紑濮嬫敮鎸 WebKit 縐佹湁璇娉曪紝鐪熸槸浠や漢鍞忓槝銆備笉鐭ラ亾 HTML6 鏄涓嶆槸璇ユ墦鍊 WebKit 鍨勬柇浜嗐
銆銆涓夈 HTML5 絎浜岄樁孌碉細 縐誨姩浜掕仈緗
銆銆闅忕潃 Chrome 鍜 Safari 鐨勯珮姝岀寷榪涳紝浠ュ強 IE+Flash 鐨勮「钀斤紝HTML5 鍛婁竴孌佃惤錛岃繘鍏ヤ簡涓嬩竴涓鏃朵唬鈥斺旂Щ鍔ㄤ簰鑱旂綉銆侶TML5 鐨勮法騫沖彴浼樺娍鍦ㄧЩ鍔ㄤ簰鑱旂綉鏃朵唬琚榪涗竴姝ュ嚫鏄俱侶TML5 鏄鍞涓涓涓閫氬悆 PC銆丮ac銆乮Phone銆乮Pad銆丄ndroid銆乄indows Phone 絳変富嫻佸鉤鍙扮殑璺ㄥ鉤鍙拌璦銆侸ava 鍜 Flash 閮芥浘姊︽兂榪欎釜浣嶇疆錛屼絾姊︽柇浜 iOS銆傛ゆ椂浜轟滑綰風悍寮濮嬬爺絀跺熀浜 HTML5 寮鍙戣法騫沖彴鎵嬫満搴旂敤銆傚緢澶氫漢褰撴椂璁や負錛屽師鐢熷簲鐢ㄥ彧鏄榪囨浮錛屽氨鍍忓綋騫翠粠C/S緇撴瀯杞鍙樹負B/S緇撴瀯涓鏍楓傝屼笖瀛︿範 Objective-C 鍜 Java 寰堣垂鍔詫紝鎴戞棦鐒朵細緗戦〉寮鍙戱紝涓轟綍涓嶈瘯璇 HTML5銆
銆銆W3C 姝ゆ椂鎴愮珛浜 Device API 宸ヤ綔緇勶紝涓 HTML5 鎵╁睍浜 Camera銆丟PS 絳夋墜鏈虹壒鏈夌殑 API錛岀劧鑰岄夯鐑︾殑鏄錛岀Щ鍔ㄤ簰鑱旂綉鍒濇湡鐨勮凱浠eお蹇浜嗭紝鎵嬫満 OS 鍦ㄤ笉鍋滅殑鎵╁睍紜浠 API錛岄檧鋙轟華銆佽窛紱繪劅搴斿櫒銆佹皵鍘嬭°傘傘傛瘡騫存墜鏈 OS 閮芥湁澶х増鏈鏇存柊銆傝 W3C 浣滀負涓涓鏁扮櫨瀹朵細鍛樺崟浣嶅叡鍚屽喅絳栫殑緇勭粐錛屼粠鏍囧噯鑽夋堢殑鎻愬嚭鍒拌揪鎴愪竴鑷存槸闈炲父澶嶆潅鐨勮繃紼嬶紝璺熶笉涓婄Щ鍔ㄤ簰鑱旂綉鍒濇湡鐨勫揩閫熻凱浠c
銆銆PhoneGap 鐨勫嚭鐜幫紝緇欏紑鍙戣呮墦寮浜嗕竴鎵囩獥銆傚緢澶氫漢鏈熷緟 PhoneGap 涓嶅仠鎵╁睍 API錛屾潵琛ュ厖嫻忚堝櫒鐨勪笉瓚熾侫dobe 鐪嬪埌 PhoneGap 浠誇經鐪嬪埌浜嗛噸鎸奼熸箹鍦頒綅鐨勫笇鏈涳紝浣嗗湪 Adobe 鏀惰喘 PhoneGap 鍚庯紝鍙堝彂鐜拌繖涓涓滆タ鍙鍟嗙敤鎬т笉瓚籌紝鑰屼笖寮婧愪嬌寰 Adobe 鏃犳硶鍍 Flash 閭f牱鑾峰彇鍟嗕笟鍒╃泭錛屼簬鏄灝辨妸 PhoneGap 鎹愮粰浜 Apache錛屾敼鍚嶄負 Cordova銆
銆銆鍥犱負鍚勭嶅師鍥狅紝Cordova 鐨勫畾浣嶆渶緇堟病鏈夋垚涓烘祻瑙堝櫒鐨勫己鍖栵紝鑰岃蛋鍚戜簡娣峰悎寮忓紑鍙戙傚熀浜庡綋鏃剁殑鑳屾櫙錛屼粬浠璁や負鍘熺敓鏄涓嶅彲鏇誇唬鐨勶紝鈥滃師鐢 +HTML5鈥濈殑娣峰悎妯″紡鏇存湁鎰忎箟銆傛墍浠ョ幇鍦 Cordova 鐨勪嬌鐢ㄦā鍨嬫槸鈥滃師鐢熷伐紼嬪笀 +HTML5 宸ョ▼甯堚濅竴璧峰崗浣滃畬鎴 App銆
銆銆榪欐椂 Facebook 鍔犲叆浜 W3C錛岀壍澶存垚絝嬩簡 Mobile Web 宸ヤ綔緇勩侳acebook 鏄娣 Web 鍦堢殑錛屽苟涓斿湪鎵嬫満 OS 涓婃病鏈夎嚜宸辯殑棰嗗湴錛屼粬涓嶅枩嬈㈣鑻規灉鍜 Google 鎺屾帶鐨勫師鐢熷簲鐢ㄧ敓鎬佺郴緇熴侻obile Web 榪欎釜宸ヤ綔緇勭殑閲嶈佺洰鏍囧氨鏄璁 HTML5 寮鍙戠殑緗戦〉搴旂敤杈懼埌鍘熺敓搴旂敤鐨勪綋楠屻傜劧鑰岋紝浜嬩笌鎰胯繚錛屽畠涓嶅姫鍔涗篃灝辯畻浜嗭紝緇撴灉鏄鍔鍔涗簡鍗村け璐ヤ簡銆2012 騫達紝Facebook 鏀懼純浜 HTML5 鐨勬柊闂誨厖鏂ヤ簡鍏ㄤ笘鐣岀殑 IT 濯掍綋錛孒TML5 鐬闂磋鎵撳叆鍐峰銆
銆銆Facebook 涓轟綍鏀懼純 HTML5?鏍稿績鏄褰撴椂鍩轟簬 HTML5 鐪熺殑鍋氫笉鍑哄ソ鐨勭Щ鍔 App銆傚規瘮 Twritter 絳夌珵浜夊規墜鐨勫師鐢 App錛孎acebook 鐨 HTML5 鐗堟湰瀹炲湪鏃犳硶璁╃敤鎴鋒弧鎰忋傛瘮濡 Push 鍔熻兘錛屽埌鐜板湪 HTML5 鐨勬帹閫佸拰鍘熺敓鐨勬帹閫佷綋楠屽樊璺濅緷鐒跺法澶э紝鏇翠笉鐢ㄨ HTML5 搴旂敤鐨勯〉闈㈠垏鎹㈢櫧灞忋佷笅鎷夊埛鏂/渚ф粦鑿滃崟涓嶆祦鐣呯瓑浼楀氶棶棰樸傜湅鐫鍘熺敓宸ョ▼甯堣交鏉懼疄鐜版憞涓鎽囥佷簩緇寸爜銆佽闊寵緭鍏ャ佸垎浜鍒版湅鍙嬪湀絳夊姛鑳斤紝鏇存槸璁 HTML5 宸ョ▼甯堟劅瑙夎嚜宸辯珯閿欎簡闃熴
銆銆鍗充嬌 Facebook 涓嶅枩嬈㈣鎺у埗錛屼篃涓嶈兘鎷胯鐢ㄦ埛鎶涘純鏉ュ啋闄┿傝屼笖 Facebook 騫舵病鏈夋帉鎻″叧閿鐐光旀墜鏈烘祻瑙堝櫒鍐呮牳銆傚傛灉嫻忚堝櫒涓嶈窡涓婏紝寰掔劧瀹氫竴鍫嗘爣鍑嗚崏妗堣惤涓嶄簡鍦般
銆銆鑰屾祻瑙堝櫒鍦ㄦ墜鏈轟笂鐨勮〃鐜版槸浠涔堝憿?鍏堢湅 Google錛孋hrome 鎬ц兘鉶介珮錛屼絾 Android 涓婄殑嫻忚堝櫒鍗村苟闈 Chrome錛岃屾槸 WebKit 鏀瑰嚭鏉ョ殑涓涓韞╄剼鐨 Android 嫻忚堝櫒;鍐嶇湅鑻規灉錛宨OS 涓婁笉鍏佽稿叾浠栨祻瑙堝櫒寮曟搸涓婃灦 App Store錛岃屼笖鍏朵粬浣跨敤 Safari 寮曟搸鐨勫簲鐢ㄤ篃鏃犳硶璋冪敤鑻規灉鑷宸辯殑 JavaScript 鍔犻熷紩鎿 Nitro銆傜粨鏋滄槸鑻規灉鍜 Google 涓嶄絾涓嶅湪嫻忚堝櫒涓婄Н鏋佸疄鐜 HTML5 鍏充簬縐誨姩 App 鎵闇鐨勮勮寖錛屽弽鑰屽 HTML5 鍋氬嚭縐嶇嶉檺鍒躲
銆銆涓嶇℃槸褰撴椂紜浠惰兘鍔涗笉瓚籌紝榪樻槸鎵嬫満 OS 鍘傚晢鐨勬晠鎰忛檺鍒訛紝鎬諱箣緇撴灉灝辨槸錛氬湪縐誨姩浜掕仈緗戠殑鍒濇湡錛屼竴瀹氭槸鍘熺敓搴旂敤鐢熸佺郴緇熺殑澶╀笅錛宨OS 鍜 Android 棣栧厛鑷宸辯殑鍦扮洏紼沖滻鍚庯紝浜т笟鎵嶄細鍚戜笅涓闃舵靛崌綰с
銆銆Facebook 涔熷ソ錛孭honeGap 涔熷ソ錛屾兂鍦ㄧЩ鍔ㄤ簰鑱旂綉鍒濇湡灝卞垎涓鏉緹規槸鍒嗕笉鍒扮殑錛屼絾鍧氭寔涓嬫潵錛屾満浼氬線寰浼氬嚭鐜般
銆銆鍥涖 HTML5 榪欏洖鐪熺殑鏉ヤ簡
銆銆緇堜簬錛屽湪 2014 騫 10 鏈堝簳錛學3C 瀹e竷 HTML5 姝e紡瀹氱褲傝繖涓鏃墮棿錛屼笉鏅氫笉鏃╋紝紜浠舵ц兘鏇村己銆佹墜鏈 OS 榪浠i熷害涓嬮檷銆
銆銆闅忕潃 HTML5 鏍囧噯瀹氱匡紝涓鍒囩悍浜夊皢鍛婁竴孌佃惤錛岀幇鍦錛屽睘浜 HTML5 鐨勬椂浠e埌鏉ヤ簡銆
銆銆鏈変漢璇達紝鍏夋爣鍑嗗畾紼挎病鐢ㄥ晩錛岄厤濂楄搗鏉ヤ簡鍚?HTML5 鍋氱殑搴旂敤絀剁珶鑳藉惁鍖規晫鍘熺敓 App?絳旀堟槸錛孒TML5 涓嶄絾鍙浠ュ尮鏁屽師鐢 App錛岀敋鑷沖畠澶╃劧鐨勫緢澶氱壒鎬ц秴瓚婁簡鍘熺敓 App銆
銆銆鎴戜滑鍏堣皥璋 HTML5 鍘熸潵涓嶅傚師鐢熷簲鐢ㄧ殑鍦版柟錛屼笟鍐呬織縐 HTML5 鏈夆滄у伐鑳解濋殰紕嶃傚嵆 HTML5 鎬ц兘涓嶅傚師鐢熴佸紑鍙戝伐鍏蜂笉濡傚師鐢熴佽兘鍔涜皟鐢ㄤ笉濡傚師鐢熴
銆銆榪欏嚑涓闂棰樺艱嚧寮鍙戣呮棤娉曚嬌鐢 HTML5 鍋氬嚭涓庡師鐢熶竴鏍風殑 App銆傜劧鑰岋紝涓嶇℃槸紜浠跺崌綰ц繕鏄 OS 鍘傚晢絳栫暐鍙樺寲錛屼互鍙婄浉鍏寵蔣浠舵妧鏈鐨勬垚鐔燂紝宸茶В鍐充簡 HTML5 鐨勨滄у伐鑳解濋殰紕嶃
銆銆1. 紜浠跺崌綰
銆銆2011 騫達紝iPhone 4s 鐨 CPU 鏄 A5錛岀幇鍦 iPhone 6 鏄 A8錛屾寜鑻規灉鐨勫巻嬈″彂甯冧細鐨勮存硶錛岄熷害鍏辨彁鍗囦簡 7.5 鍊嶃傝繖 3 騫撮棿 7.5 鍊嶇殑閫熷害鎻愬崌錛屾姽騫充簡澶澶 HTML5 鐨勬ц兘闂棰樸
銆銆2. 鑻規灉銆丟oogle 鐨勭瓥鐣ュ彉鍖
銆銆Google 鍦 2013 騫村簳鍙戝竷鐨 Android 4.4錛屽唴緗鐨 Webview 涓嶅啀鏄韞╄剼鐨 Android WebKit 嫻忚堝櫒錛岃屾槸 Chromium錛屾ц兘澶у箙鎻愬崌銆備粠鏈鏂扮殑 Android5.0 寮濮嬶紝Webview 鍙浠ラ氳繃 Google Play Store 瀹炴椂鏇存柊錛屽拰 Chrome 鐨勫崌綰т繚鎸佷竴鑷達紝鐢ㄦ埛灝卞彲浠ヤ笉鍒鋒満浜鍙楀埌鏈鏂扮殑嫻忚堝櫒寮曟搸;鍐嶇湅 Apple 鏂歸潰錛2012 騫 iPhone 5 鍙戝竷鍚庯紝HTML5 鍦 iOS 涓婄殑琛ㄧ幇宸蹭護浜烘弧鎰忥紝Safari 鐙瀹剁殑 JavaScript 鍔犻熷紩鎿 Nitro 涓嶅啀閭d箞閲嶈侊紝涓嶈繃鍦 iOS 8 鍙戝竷鍚庯紝鑻規灉榪樻槸寰堣瘑瓚e湴鍙栨秷浜嗕笁鏂圭▼搴忚皟鐢 Nitro 鐨勯檺鍒訛紝鐜板湪浠繪剰嫻忚堝櫒鎴栧簲鐢ㄨ皟鐢 iOS 鐨 UIWebview 閮藉彲浠ュ埄鐢 Nitro 鍔犻燂紝榪欐牱鍦ㄥ墠絝浣跨敤 js 鍋氬ぇ鍨嬭繍綆椾篃鎴愪負鍙鑳姐備袱澶ф墜鏈烘搷浣滅郴緇熼湼涓誨拰嫻忚堝櫒宸ㄥご鐨勬佸害鍙戠敓浜嗗彉鍖栵紝浣垮緱 HTML5 鍦ㄦ墜鏈轟笂鐨勫彂灞曚笉鍐嶅彈闄愶紝鑰屼笖榪欎釜鍙樺寲涓嶅彲閫嗗彧鑳界戶緇鍚戝墠錛岃繖縐嶅彉鍖栧娍蹇呬細浜х敓娣辮繙鐨勫獎鍝嶃
銆銆3. 杞浠舵妧鏈鐨勬垚鐔
銆銆PhoneGap 鐨勫彂灞曡櫧鐒舵斁緙撲簡錛屼絾鍏朵粬浜у搧鎶鏈鍗存垚鐔熶簡銆2014 騫寸殑 iWeb 澶т細涓婏紝浼楀氬巶鍟嗙殑浜у搧鎻愪緵浜嗛潰鍚戝紑鍙戣呭厤璐規垨寮婧愮殑 HTML5 鎬у伐鑳介殰紕嶇殑瑙e喅鏂規堛
銆銆(娉錛氱紪鑰呬綔涓轟粠涓氫漢鍛橈紝涔熶細鍦ㄥ垎鏋愬悇縐嶆柟妗堟椂鎻愬埌鎴戜滑鍏鍙哥殑鏂規堬紝浣嗙紪鑰呬細瀹㈣備笉澶稿紶鐨勯檲榪版柟妗堬紝鑰屼笖璇ユ柟妗堟槸綰鍏嶈垂鐨勶紝娌℃湁鍟嗕笟閿鍞瀚岀枒銆)
銆銆DCloud 鍏鍙稿湪 iWeb 澶т細涓婂彂甯冧簡緋葷粺鐨 HTML5鈥滄у伐鑳界己澶扁濈殑瑙e喅鏂規堬紝鍖呮嫭錛
銆銆a) 鎬ц兘錛氭彁鍗 HTML5 鎬ц兘鐨勬墜鏈虹寮曟搸錛岃╀晶婊戣彍鍗曘佷笅鎷夊埛鏂扮瓑鍔ㄦ佷氦浜掑崱欏跨殑闂棰樺緱浠ヨВ鍐;
銆銆b) 宸ュ叿錛欻TML5 寮鍙 IDE 浜у搧 HBuilder, 瓚呭揩鐨勭紪紼嬪埄鍣;
銆銆c) 鑳藉姏錛氭妸 40 涓囧師鐢 API 灝佽呮垚 JavaScript 瀵硅薄錛屼互瑙e喅 HTML5 鑳藉姏涓嶈凍闂棰樼殑 Native.js 鎶鏈;
銆銆d) 鏈鎺ヨ繎鍘熺敓浣撻獙鐨勯珮鎬ц兘妗嗘灦錛歁UI 妗嗘灦錛屼綋縐鍙鏈夊嚑鍗並錛屽姞杞姐佽繍琛岃繙蹇浜庝竴鑸妗嗘灦銆
銆銆鍩轟簬璇ユ柟妗堝紑鍙戠殑 HTML5 搴旂敤瀹屽叏鍙浠ヨ揪鍒板師鐢 App 鐨勫姛鑳藉拰浣撻獙銆
浣跨敤 HBuilder 寮鍙 HTML5 搴旂敤
銆銆鑻辯壒灝斿叕鍙稿彂甯冧簡 Crosswalk 寮曟搸錛屽彲浠ヨ Android 4.0-4.3 鐨勬墜鏈轟笂鐨勫簲鐢ㄦ墦鍖 Chromium 寮曟搸鑰屼笉鏄 Android WebKit銆傛瘯絝熺洰鍓嶅競鍦轟笂瀛樺湪澶ч噺 Android 4.0-4.3 鐨勬墜鏈猴紝鍚屾椂緇熶竴鐨 webview 涔熼伩鍏嶄簡鍏煎規х殑鐑︽伡銆
銆銆鍦ㄤ笓涓氭柟鍚戜笂寰堝氬叕鍙鎬篃鍋氬嚭浜嗕笉閿欑殑鎴愮嘩銆傝Е鎺х殑 Cocos2d-html5銆丒gret runtime 鍜 Ludei CocoonJS 寮哄寲浜 Canvas 鐨勮〃鐜幫紝璁 HTML5 娓告垙浣撻獙鏇村ソ;UC銆佺寧璞圭瓑鎵嬫満嫻忚堝櫒閮藉己鍖栦簡闊寵嗛戞挱鏀劇殑琛ㄧ幇銆
銆銆涓嶇℃槸紜浠跺崌綰с佽蔣浠舵垚鐔燂紝榪樻槸鎿嶄綔緋葷粺鍘傚晢絳栫暐鍙樺寲錛岄兘鍦ㄥ己鍔涙帹鍔 HTML5 鐨勭垎鍙戙
銆銆涓嶈繃瑕佹敞鎰忥紝鎴戣寸殑 HTML5 鐖嗗彂錛屼笉鏄鎸囨墜鏈烘祻瑙堝櫒浼氭浛浠f岄潰鎴愪負搴旂敤鍏ュ彛銆傛湁浜鴻 HTML5 涓嶅ソ錛屽洜涓虹敤鎴瘋ㄥ帉鎵撳紑嫻忚堝櫒杈撳叆 URL 鐨勮繃紼嬨傛垜鎯寵磋繖縐嶆兂娉曟槸瀵 HTML5 鐨勭墖闈㈢悊瑙c侶TML5!=浼犵粺嫻忚堝櫒錛岃櫧鐒剁紪紼嬭璦榪樻槸 HTML銆丣avascript銆丆SS錛屼絾鍙戣屾柟寮忕粷涓嶆槸浼犵粺緗戠珯閭d箞綆鍗曘侶TML5 搴旂敤鐨勫叆鍙o紝鍙嶈屽緢灝戞槸鍚鍔ㄦ祻瑙堝櫒杈撳叆 URL錛屽畠鍙浠ユ槸瀛樺湪浜庢墜鏈烘岄潰鐨勫浘鏍囥佷篃鍙浠ユ潵鑷瓚呯駭 App (濡傚井淇℃湅鍙嬪湀)銆佷互鍙婃悳緔㈠紩鎿庛佸簲鐢ㄥ競鍦恆佸箍鍛婅仈鐩熴傘傘傚埌澶勯兘鏄瀹冪殑鍏ュ彛銆傚畠鐨勫叆鍙o紝姣斿師鐢 App 鏇村氥
銆銆浜斻 鍘熺敓 App 鐨勯犺
銆銆HTML5 鐨勨滄у伐鑳解濋殰紕嶅緱鍒拌В鍐籌紝鍙浠ユ帴榪戝師鐢 App 鐨勬晥鏋滐紝鎵浠ュ畠灝卞彲浠ユ浛浠e師鐢 App 鍚?寰堝氫漢璁や負錛屽嵆浣 HTML5 浼氬彂灞曠殑姣旂幇鍦ㄥソ錛屼篃灝嗘槸涓庡師鐢 App 鍚勫崰涓閮ㄥ垎甯傚満鐨勬牸灞錛岃佹眰涓嶉珮鐨勯暱灝懼簲鐢ㄤ細浣跨敤 HTML5錛岃屼富嫻佸簲鐢ㄤ粛鏄鍘熺敓 App 鐨勫ぉ涓嬨
銆銆浣嗘垜璁や負榪欐牱鐨勬兂娉曞緢鍗遍櫓錛屽氨鍍 Apple 鎴愮珛鍓嶏紝HP 鐨勯珮灞傚憡璇夋矁鍏癸細璋佷細鍦ㄥ墮噷鎽嗕竴鍙扮數鑴戝憿?鏈鏉 HTML5 鑲瀹氫細棰犺嗗師鐢 App銆傗滄у伐鑳解濋殰紕嶇殑娑堥櫎錛屽彧鏄 HTML5 鐨勫姡鍔胯鍓婂急錛屼絾鍔e娍琚娑堥櫎鍚庯紝瀹冪殑浼樺娍灝變細澶ф斁寮傚僵錛孒TML5 鐨勪紭鍔挎槸浠涔?鎴戜滑鍒嗗埆灝卞紑鍙戣呭拰鏈緇堢敤鎴鋒潵鐪嬨
銆銆HTML5 瀵瑰紑鍙戣呯殑 7 澶т紭鍔
銆銆 璺ㄥ鉤鍙幫細
銆銆鍦ㄥ氬睆騫翠唬錛屽紑鍙戣呯殑鐥涜嫤鎸囨暟闈炲父楂橈紝浜轟漢閮芥湡鐩 HTML5 鑳芥壆婕旀晳鏄熴傚氬椾唬鐮併佷笉鍚屾妧鏈宸ョ嶃佷笟鍔¢昏緫鍚屾ワ紝榪欐槸鎶樼(浜虹殑榪囩▼銆傛湁鐐圭被浼間釜浜虹數鑴戞棭鏈熶笘鐣岋紝閭d釜鏃跺欑殑姣忓剁數鑴戦兘鏈夎嚜宸辯殑鎿嶄綔緋葷粺鍜岀紪紼嬭璦錛屽紑鍙戣呯柌浜庡仛涓嶅悓鐗堟湰錛屽叾瀹 DOS 鐨勭洓琛屼篃寰堝ぇ紼嬪害鏄鍥犱負寮鍙戣呭疄鍦ㄦ病綺懼姏緇欏叾浠栫數鑴戝啓紼嬪簭銆傝法騫沖彴鎶鏈鍦ㄦ棭鏈熷ぇ澶氬洜涓烘ц兘闂棰樺き鎶橈紝浣嗕腑鍚庢湡紜浠惰兘鍔涘炲己鍚庡張浼氬崰鎹涓繪祦錛屽洜涓鴻法騫沖彴紜瀹炴槸鍒氶渶銆
銆銆蹇閫熻凱浠o細
銆銆縐誨姩浜掕仈緗戞槸涓涓蹇楸煎悆鎱㈤奔鐨勬椂浠o紝璋佸圭敤鎴風殑闇奼傛弧瓚崇殑鏇村揩錛岃皝鐨勮瘯閿欐垚鏈鏇翠綆錛岃皝灝辨嫢鏈夊法澶х殑浼樺娍銆備簰鑱旂綉浜у搧澶у氬厤璐廣佷笖鏈夌綉緇滄晥搴旓紝鍚庡叆鑰呮姠澶虹敤鎴風殑闅懼害闈炲父澶с備嬌鐢ㄥ師鐢熷紑鍙戱紝浠庢嫑鑱樸佸紑鍙戙佷笂綰垮悇涓鐜鑺傜殑鏁堢巼閮芥參涓鍊嶄互涓婏紝鑰屼笖鍙備笌鐨勪漢瓚婂氾紝娌熼氭晥鐜囧線寰鎷栨參涓嶆涓鍊嶃
銆銆鎸佺畫浜や粯錛
銆銆寰堝氫漢鏈夎繖鏍風殑浣撲細錛屼竴涓鍘熺敓搴旂敤涓婄嚎 Appstore錛岀獊鐒舵湁涓涓澶 bug錛屽彧濂借繛澶滃姞鐝淇澶嶏紝鐒跺悗闈欓潤絳夊緟 2 鍛ㄦ垨鏇撮暱鏃墮棿鐨 Apple 瀹℃牳錛岃繖 2 涓鏄熸湡琚鐢ㄦ埛鐨勬秱鎶規飯姝伙紝甯傚満涓婁竴鐗囧樊璇勶紝鐢ㄦ埛澶ч噺嫻佸け銆傜瓑鏂板簲鐢ㄨ瀹℃牳涓婄嚎浜嗭紝鐢ㄦ埛宸茬粡鍗歌澆浜嗐備絾鏄錛孒TML5 娌℃湁榪欎簺闂棰橈紝浣犲彲浠ュ疄鏃舵洿鏂幫紝鏈夐棶棰樼珛鍗沖搷搴斻
銆銆澶у箙涓嬮檷鎴愭湰錛
銆銆鍒涗笟鑰呰瀺璧勫苟涓嶅規槗錛屽備綍鑺遍挶鏇撮珮鏁堥潪甯擱噸瑕併傚傛灉浣犱嬌鐢ㄥ師鐢熷紑鍙戠殑 App 鍜岀珵浜夊規墜浣跨敤 HTML5 寮鍙戠殑 App 娌′粈涔堝尯鍒錛屼絾浣犵殑寮鍙戞垚鏈楂樺嚭涓鍊嶏紝鎴戠浉淇℃病鏈夋姇璧勪漢浼氬枩嬈㈢粰浣犳姇閽便
銆銆寮婧愮敓鎬佺郴緇熷彂杈撅細
銆銆HTML5 鍓嶇鏄寮鏀劇殑姝e弽棣堝驚鐜鐢熸佺郴緇燂紝澶ч噺鐨勫紑婧愬簱鍙浠ヤ嬌鐢錛屽紑鍙戝簲鐢ㄥ彉寰楁洿杞繪澗銆佹洿鏁忔嵎錛屽綋鐒惰繖涔熶綋鐜板湪浜嗗揩閫熻凱浠e拰鎴愭湰涓嬮檷涓娿備笉榪囨洿閲嶈佺殑鏄錛岃繖縐嶅紑鏀劇殑姝e弽棣堝驚鐜鐢熸佺郴緇熸湭鏉ョ殑鐢熷懡鍔涙槸姣斿師鐢熺敓鎬佺郴緇熸洿寮哄姴鐨勩
銆銆寮鏀劇殑鏁版嵁浜ゆ崲錛
銆銆HTML 鏄浠 page 涓哄崟鍏冨紑鏀句唬鐮佺殑錛屽畠鏃犻渶涓撻棬寮鍙 SDK錛屽彧瑕佷笉娣鋒穯錛屽氨鑳戒笌鍏朵粬搴旂敤浜や簰鏁版嵁銆傚紑鍙戣呭彲浠ヨ╂墜鏈烘悳緔㈠紩鎿庡緢瀹規槗媯緔㈠埌鑷宸辯殑鏁版嵁錛 涔熸洿瀹規槗閫氳繃璺ㄥ簲鐢ㄥ崗浣滄潵婊¤凍鏈緇堢敤鎴烽渶奼傘
銆銆鏇村規槗鎺ㄥ箍銆佹洿瀹規槗鐖嗗彂錛
銆銆瀵兼祦鍏ュ彛澶氾細HTML5 搴旂敤瀵兼祦闈炲父瀹規槗錛岃秴綰 App (濡傚井淇℃湅鍙嬪湀)銆佹悳緔㈠紩鎿庛佸簲鐢ㄥ競鍦恆佹祻瑙堝櫒錛屽埌澶勯兘鏄 HTML5 鐨勬祦閲忓叆鍙c傝屽師鐢 App 鐨勬祦閲忓叆鍙e彧鏈夊簲鐢ㄥ競鍦恆傝仾鏄庣殑 HTML5 寮鍙戣呭綋鐒朵細鐜╄漿鍚勭嶆祦閲忓叆鍙d粠鑰屽彇寰楁洿寮虹殑浼樺娍銆
銆銆嫻侀噺澶э細鍓嶆墊椂闂村井淇℃湅鍙嬪湀椋庨潯涓鏃躲婄炵粡鐚銆嬶紝榪欎釜娓告垙濡傛灉鏀懼埌 Appstore錛岀粷瀵規病鏈夐偅涔堝氭祦閲忥紝瓚呯駭 App 甯︽潵鐨勬祦閲忥紝榪滃ぇ浜庡師鐢熷簲鐢ㄥ競鍦恆傚亣濡傚井淇″厑璁告父鎴忓湪妗岄潰鍒涘緩蹇鎹鋒柟寮忋佸亣濡傛父鎴忓悗緇鍗囩駭瑙e喅鎸佺畫濞變箰闂棰橈紝鏈鏉ヤ笉鍙鎯寵薄銆
銆銆瀵兼祦鏁堢巼楂橈細闄や簡鍏ュ彛澶氥佹祦閲忓ぇ錛屽兼祦鏁堢巼楂樹篃涓嶅彲蹇借嗭紝璋侀兘鐭ラ亾錛氶〉娓稿拰絝娓告墦鍚屾牱鐨勫箍鍛婏紝騫垮憡鍙樼敤鎴風殑杞鍖栫巼錛岄〉娓歌繙榪滈珮浜庣娓搞
銆銆鍙綺懼噯瀵兼祦鍒頒簩綰ч〉錛氭垜浠閮界煡閬撴悳緔㈠紩鎿庡彲浠ョ洿鎺ヨ繘鍏ュ埌銆
銆銆HTML5 瀵規渶緇堢敤鎴風殑 3 澶т紭鍔
銆銆澶у箙闄嶄綆浣跨敤闂ㄦ
銆銆涓轟粈涔堟祦濯掍綋浼氭浛浠d笅杞借嗛戞垚涓轟富嫻?涓轟粈涔堥〉娓鎬細濡傛ょ伀鐖?鍙鍥犵敤鎴峰お鈥滄噿鈥濄傝╃敤鎴鋒洿鏂逛究鐨勬弧瓚抽渶奼傦紝鏈夋椂鏁堟灉濂戒簬鏇村氱殑婊¤凍闇奼傘
銆銆鐢ㄦ埛鐪肩潧鐪嬪埌涓涓鍏磋叮鐐癸紝鐐瑰嚮鍚庯紝灝卞簲璇ョ珛鍗沖紑濮嬫弧瓚崇敤鎴烽渶奼傘傛瘮濡傛祦濯掍綋鍙浠ョ珛鍗崇湅錛岄〉娓稿彲浠ョ珛鍗崇帺銆傝岀洰鍓嶇殑鍘熺敓搴旂敤甯傚満錛岀敤鎴烽渶瑕佽繖鏍鋒搷浣滐細閫変竴涓搴旂敤銆佺瓑寰呬笅杞姐佺『璁ゆ潈闄愩佺瓑寰呭畨瑁咃紝鐒跺悗鐐瑰嚮鎵撳紑銆傝繖鏍風碂緋曠殑浣撻獙榪熸棭瑕佽棰犺嗐
銆銆涓嶇℃槸 App銆佹父鎴忚繕鏄闊寵嗛戱紝鏈鏉ラ兘灝嗗嵆鐐瑰嵆鐢ㄣ傝皝鍏堟弧瓚崇敤鎴瘋繖涓闇奼傦紝璋佸氨鍒惰儨銆
銆銆瀹炴椂鏇存柊銆佸樊閲忔洿鏂扮殑浼樼浣撻獙
銆銆HTML5 搴旂敤鍙浠ョ粫寮搴旂敤甯傚満鐨勯檺鍒惰繘琛岃嚜涓誨疄鏃舵洿鏂幫紝鐢ㄦ埛鍙浠ュ揩閫熶韓鍙楁柊鏈嶅姟銆
銆銆鑰屼笖榪欑嶆洿鏂板畬鍏ㄥ彲浠ユ槸宸閲忔洿鏂幫紝姣斿傛煇涓 HTML 欏甸潰鎴栨煇涓 js 鏂囦歡鏈夐棶棰橈紝鍙鏇存柊榪欎釜鍑爇鐨勫皬鏂囦歡灝卞彲浠ヤ簡錛岃繖姣斿師鐢熷簲鐢ㄧ殑鏇存柊浣撻獙濂藉お澶氥
銆銆璺ㄥ簲鐢ㄧ殑浣跨敤浣撻獙
銆銆鐩鍓嶆墜鏈哄簲鐢ㄥ垏鎹㈡槸浠ユ岄潰鎴栦換鍔$$悊鍣ㄤ負涓蹇冪殑錛屼絾浜嬪疄涓婅繖浜涗腑蹇冨緢褰卞搷鏁堢巼鍜屼綋楠屻傜敤鎴鋒兂鍑哄樊涓変簹錛屽厛鎵撳紑鍘誨摢 App 璁㈢エ錛岀劧鍚庡垏鍥炴岄潰錛屽啀鎵懼埌騫舵墦寮澶╂皵 App錛屾悳緔㈣緭鍏ヤ笁浜氾紝鍐嶅垏鍒版岄潰錛屾壘鍒板苟鎵撳紑鑸鏃呯旱妯 App錛岃緭鍏ヨ埅鐝鍙峰兼満錛屽摝瀵逛簡錛岃埅鐝鍙峰氬皯鏉ョ潃錛屽啀鍒囧埌妗岄潰錛屾壘鍒板苟鎵撳紑鍘誨摢 App 鐪嬭埅鐝鍙鳳紝鏈鍚庢壘鍒板苟鎵撳紑縐熻濺 App錛岃緭鍏ョ熻濺鍦扮偣錛岀劧鍚庡啀鍒囧洖妗岄潰銆傘傘
銆銆鍦ㄥ師鐢熷簲鐢ㄤ綋緋諱笅錛岀敤鎴峰彧鑳借繖鏍楓備絾鍦 HTML5 浣撶郴涓嬶紝浠栦笉闇瑕佸垏鍥炴岄潰錛屼粬鍙浠ュ湪 App 闂存柟渚跨殑鐩存帴璺蟲潵璺沖幓錛岃屼笉鏄浣跨敤涓涓涓涓瀛ゅ矝 App;浠栨洿涓嶇敤閲嶅嶅綍鍏ユ暟鎹錛屽簲鐢ㄩ棿鍙浠ユ柟渚跨殑浜掔浉浼犻掓暟鎹銆
銆銆榪欑嶆ā寮忛渶瑕佷竴鐐規兂璞″姏錛屼絾鏈鏉ヨ繜鏃╀細鏉ャ
銆銆鍒嗘瀽鑷蟲わ紝鎴戜滑鍙浠ユ槑鏄劇殑鐪嬪嚭錛屼笉綆℃槸絝欏湪鏈緇堢敤鎴瘋掑害銆佽繕鏄絝欏湪寮鍙戣呰掑害錛孒TML5 蹇呭皢鍙栦唬鍘熺敓搴旂敤褰撳墠鐨勪綅緗銆傚苟鐢辨ゅ紩鍙戜竴緋誨垪棰犺嗐
銆銆鍏銆 榪樻湁浠涔堜細琚鏀瑰彉?
銆銆HTML5 鐨勭垎鍙戱紝鍘熺敓 App 鐢熸佺郴緇熺殑棰犺嗭紝鏄涓鍦轟駭涓氶潻鍛斤紝寰堝氳掕壊閮戒細鍙楀埌褰卞搷錛屾垜浠鏉ラ勬祴涓鐣銆
銆銆鏂板瀷 HTML5 寮曟搸鎴樼伀灝嗙儳璧
銆銆鏍囧噯鐨 HTML5 寮曟搸騫朵笉鑳借В鍐 HTML5 鐨勬墍鏈夐棶棰橈紝鎷ユ湁澶ф祦閲忓叆鍙g殑浜掕仈緗戝法澶達紝鑾涓嶅湪鎬濊冨唴宓屾洿浼樼鐨勫炲己寮曟搸銆傝吘璁鎺ㄥ嚭浜 X5 嫻忚堝櫒寮曟搸錛屽氨鏄鐪嬩腑榪欎釜鏈轟細銆傜洰鍓嶅悇璺嫻忚堝櫒鍘傚晢銆佸簲鐢ㄥ競鍦哄巶鍟嗐佺敋鑷 rom 鍘傚晢錛岄兘鍦ㄥ姫鍔涙暣鍚堟洿浼樿川鐨勬祻瑙堝櫒寮曟搸銆傚亣浣垮井淇″唴宓岀殑 Webview 鍙浠ヨ繍琛屾洿浼樼鐨 canvas 娓告垙銆佸亣浣 360 鎵嬫満鍔╂墜鍙浠ュ彂琛屽嵆鐐瑰嵆鐢ㄧ殑 HTML5 搴旂敤騫朵笖鑳藉姏浣撻獙涓庡師鐢熶竴鑷淬佸亣浣垮皬綾 rom 鍐呯疆鏇村己澶х殑 webview 浣垮緱鎵鏈 HTML5 搴旂敤鍦ㄥ皬綾蟲墜鏈轟笂榪愯岀殑鏇存祦鐣呫傘傘
銆銆涓涓宸ㄥご寮濮嬭屽姩錛屾墍鏈夊法澶撮兘浼氶椈椋庤屽姩錛屾病閿欙紝榪欏満鎴樺焦浼氭槸縐誨姩浜掕仈緗戜笘鐣岀殑浜屾′笘鐣屽ぇ鎴樸
銆銆搴旂敤鍙戣屽競鍦哄皢媧楃墝
銆銆鐢變簬瓚呯駭 App 鐨勫法澶ф祦閲忚兘杞繪槗鎴愪負 HTML5 搴旂敤鐨勫叆鍙o紝騫朵笖浼氬艦鎴愬ぇ鑰呮洿澶х殑鏁堝簲錛屼紶緇熺殑搴旂敤鍟嗗簵銆佺敋鑷崇嚎涓嬮勮咃紝榪欎簺嫻侀噺涓嶈凍鍜屾晥鐜囧嚲浣庣殑鍙戣屾ā寮忓皢琚鎸ゅ嚭甯傚満涓繪祦銆傛湰韜涔熸槸瓚呯駭 App 鐨勫ぇ嫻侀噺搴旂敤鍟嗗簵錛屽傛灉杞鍨嬪緱褰擄紝涔熷皢浠ュ彂琛 HTML5 搴旂敤涓轟富銆
銆銆騫垮憡鍜岀粺璁″競鍦
銆銆鍘熺敓鐨勫箍鍛婂拰緇熻 SDK 鎻愪緵鍟嗕細闈涓村艾灝達紝Google銆佺櫨搴︾瓑鍩轟簬緗戦〉鐨勫箍鍛婂拰緇熻℃湇鍔′細鍙栧緱鏇村ぇ鐨勪紭鍔褲傚紑鍙戣呬笉鍐嶉渶瑕佹墦鍖 SDK錛屽紩鍏ヤ竴涓 Script 鍗沖彲銆
銆銆寮婧愭妧鏈灝嗗湪縐誨姩浜掕仈緗戦嗗煙鏇村姞嫻佽
銆銆HTML 鐨勫紑鏀炬ч犲氨浜嗗ぇ閲忕殑寮婧愪駭鍝侊紝涔熷弽鍚戜績榪涗簡 HTML 鐨勭箒鑽c傚湪 Github 涓婃湁澶ч噺鐨 JS 妗嗘灦錛岃屽師鐢熺殑寮婧愪唬鐮佹暟閲忕浉姣旂敋灝戙傝屾湭鏉ョЩ鍔ㄤ簰鑱旂綉涓栫晫灝嗗洜涓哄紑婧愯屽彂灞曠殑鏇磋繀閫燂紝榪欓噷涔熷悓鏍峰瓨鍦ㄧ被 Github 鍘傚晢鐨勬満閬囥
銆銆寮鍙戝伐鍏風殑鍙樺寲
銆銆鏃╂湡 HTML 鍙闇瑕佽頒簨鏈鍐欏嚑涓 Tag錛屼腑鏈熺殑 HTML銆丣S銆丆SS 姣旇緝澶嶆潅錛岄渶瑕佹洿楂樼駭鐨勬枃鏈緙栬緫鍣錛屼絾 HTML5 鍒版潵鍚庯紝瀹冪殑浠g爜閲忋佸嶆潅搴︺佸紑鍙戞ā鍨嬪皢涓庡師鐢熷紑鍙戠湅榻愶紝闇瑕佺被浼 XCode銆丒clipse 絳変笓涓氱殑 IDE 宸ュ叿鏉ヨВ鍐沖紑鍙戙佽皟璇曠殑闂棰樸備竴浜涗互浼氫嬌鐢ㄨ頒簨鏈鍐欎唬鐮佷負鑽g殑寮鍙戣咃紝灝嗛潰涓存濊礬杞鎹㈢敋鑷寵鏇撮珮鏁堢殑寮鍙戣呮窐奼般
銆銆鎬ц兘鍒嗘瀽璋冧紭
銆銆鐩鍓嶅緢澶氶拡瀵瑰師鐢熷簲鐢ㄧ殑鎬ц兘鍒嗘瀽璋冧紭宸ュ叿鎴栨湇鍔★紝鏈鏉ヤ篃闈涓磋漿鍨嬶紝HTML5 搴旂敤鐨勬ц兘鍒嗘瀽璋冧紭鏄鍙︿竴涓涓栫晫銆
銆銆娣鋒穯涓庝駭鏉冧繚鎶
銆銆HTML5 鏄寮鏀句唬鐮佺殑錛屽ソ澶勪篃甯︽潵寮婄錛屾湁浜涗笢瑗垮紑鍙戣呭笇鏈涙毚闇詫紝浣嗘湁浜涗笢瑗垮紑鍙戣呭笇鏈涗繚鎶ゃ傛販娣嗘妧鏈灝卞彉寰楁洿鏈夊晢涓氭満浼氥侾C Web 涓 Gmail 鐨勬販娣嗗氨鍋氱殑涓嶉敊銆傞櫎浜 JS 娣鋒穯錛岀葷嚎鏁版嵁鍔犲瘑鐩鎬俊涔熸湁涓嶅皯絀洪棿銆
銆銆瀹夊叏鍘傚晢鐨勬柊鏈轟細
銆銆HTML5 鐨勫己澶т細寮曞彂寰堝氬畨鍏ㄩ棶棰橈紝騫朵笖瑙e喅鎬濊礬涓庡師鐢熶笉涓鏍鳳紝涓氬唴鏈夊彲鑳戒細鍑虹幇鏂扮殑瀹夊叏鍘傚晢棰嗗艱呫
銆銆涓冦 緇撹
銆銆鍐欏埌緇撳熬錛屾劅瑙夎瘽棰樻湁鐐瑰ぇ浜嗐傚叾瀹炴湭鏉ュ備綍鍙戝睍鏄娌′漢鑳藉噯紜棰勬祴鐨勶紝鍙橀噺闈炲父澶氥備絾鎴戞兂璁╃敤鎴峰拰寮鍙戣呴兘鏇存柟渚跨殑瓚嬪娍鏄涓嶄細閿欑殑銆