Skip to Content
HTML5與JAVASCRIPT WEB APPS開發實務
book

HTML5與JAVASCRIPT WEB APPS開發實務

by Wesley Hales
April 2013
Intermediate to advanced
176 pages
3h
Chinese
GoTop Information, Inc.
Content preview from HTML5與JAVASCRIPT WEB APPS開發實務
用戶端結構
|
3
HTML5 之前
HTML5 與行動設備問世之前,前端(或 UI)開發者並不關心隱藏在使用者介面之
後的結構,那是駭客與外掛程式的世界。多數的開發者都將注意力放在對瀏覽器的支
援,如 IE6FirefoxSafari 等等。他們試著編寫簡潔的語義標記,並關心 XHTML
否產生預期的效果,偶爾也會匯入 JavaScript 程式庫來建構一些還不錯的特效,並使用
prototype.js
jQuery 當作程式的骨幹(沒有雙關語意)。
開發者處理瀏覽器 quirks 的方式幾乎與尋找程式 bug 一模一樣。進階的 web 應用程式
結構幾乎都由伺服器管理,應用程式非常依賴 HTTP 請求的處理速度,以及瀏覽器重新
呈現標記的速度。透過伺服器端樣板與元件框架,伺服器會解析樣板並將資料套上正規
XHTML HTML 標記語言。對 Java 而言,或許你曾經用過 JSPVelocityTiles
GWT JSF 來做同樣的工作;而在 Ruby 則是以 ERBHAML RedCloth 等等。每一
個伺服器端網路框架都隨附一個 UI 樣板引擎,這些引擎可以同時運作也可以在需要時
自由選用,這就是過去 10 年來 UI 開發者的工作方式,並且還會持續一段時間。但這不
是必然的選擇,現在是重新思考如何建構新世代 web 應用程式的時候了。
或許你會問“為什麼我們需要改變前端的生成方式?”或“為什麼我們要將程式碼移
到瀏覽器內運行,而不是在伺服器?”關於第一個問題 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

自造手冊:新工業革命實務指南

自造手冊:新工業革命實務指南

Paolo Aliverti, Andrea Maietta
Windows-based Single Signon and the EIM Framework on the IBM eServer iSeries Server

Windows-based Single Signon and the EIM Framework on the IBM eServer iSeries Server

Gary Lakner, Gregory Bobak, Jan Cifka, Kim Greene, Axel Lachmann, John Taylor, Craig Wayman

Publisher Resources

ISBN: 9789862767573