Skip to Content
JAVASCRIPT網頁應用程式設計
book

JAVASCRIPT網頁應用程式設計

by Alex MacCaw
January 2013
Intermediate to advanced
332 pages
5h 23m
Chinese
GoTop Information, Inc.
Content preview from JAVASCRIPT網頁應用程式設計
第十一章
Spine 函式庫
Spine
http://maccman.github.com/spine
)是一套輕薄短小、專門用於開發 JavaScript 應用
程式的函式庫,當中運用了很多本書介紹到的概念,像是 MVC、事件以及類別。會特
別強調它輕薄短小,是因為它真的很小—整套函式庫裡總共只有約 500 行的 JavaScript
程式碼,如果再用程式碼精簡工具和壓縮工具處理過,只剩 2K 左右。不過別因為 Spine
小就看輕它,它絕對能協助你開發出功能齊備、高度模組化,而且程式架構乾淨漂亮的
JavaScript 應用程式。
Spine 是在撰寫本書時,順便開發的(因為目前似乎還找不到任何一套用戶端的 MVC
架平台,能滿足我的需求)。這套函式庫,差不多已經把本書介紹到的所有最佳實務都
套用進來。本書的範例應用程式 Holla,就是利用 Spine 開發的。
有些函式庫是以提供方便好用的網頁小工具(widget)做為主要賣點,像是 Cappuccino
http://cappuccino.org
)和 SproutCore
http://sproutcore.com
),不過 Spine 和這類函式
庫不同,Spine 並不會幫你決定資料的呈現方式,它所強調的重點在於函式庫的簡潔性
和彈性。Spine 會幫你建構好一切必要的基礎骨架,然後將開發網頁應用程式最有趣的
部分(也就是該如何開發出令人讚歎的操作介面)留待你自己實作。
Spine 函式庫裡,包含了具備繼承機制的類別函式庫(
Spine.Class ...
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

初めてのJavaScript 第3版 ―ES2015以降の最新ウェブ開発

初めてのJavaScript 第3版 ―ES2015以降の最新ウェブ開発

Ethan Brown, 武舎 広幸, 武舎 るみ
PHP编程:第4版

PHP编程:第4版

Kevin Tatroe, Peter MacIntyre
Strange Code

Strange Code

Ronald T. Kneusel
Perfecting Your Thinking Skills

Perfecting Your Thinking Skills

MIT Sloan Management Review

Publisher Resources

ISBN: 9789862766811