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網頁應用程式設計
第十三章
JavaScriptMVC 函式庫
本章的內容
是由
JavaScriptMVC
的作者
Justin Meyer
http://jupiterjs.com/pages/justin-
meyer
所提供
JavaScriptMVCJMVC)是一套以 jQuery 為基礎的 JavaScript 開放原始碼框架平台。
它幾乎可說是一套無所不包(什麼功能都有)的前端開發框架平台,功能包括有:測試
工具、相依性管理工具、文件產生器,以及許多實用的 jQuery 外掛模組。
JavaScriptMVC 當中的每部分程式組件,都可以不用相依其他部分的組件獨立運作,這
使得函式庫相當的輕薄短小。把它的類別、模型、檢視器、控制器…等程式組件全部加
起來,再經過程式碼精簡工具和壓縮工具處理過後,只會剩 7K 左右。再加上函式庫裡
的每部分程式組件都可以獨立運作,因此實際使用時應該會更小。JavaScriptMVC 的獨
立性,給予程式設計師相當大的彈性,你可以先利用它開發出一個麻雀雖小、五臟俱全
的網頁應用程式,等到日後有需要時,再逐步將其擴展成極度複雜的網頁應用程式。
本章將會介紹 JavaScriptMVC
$.Class
$.Model
$.View
,以及
$.Controller
。先簡
單的描述一下這些程式組件:
$.Class
JavaScript 為基礎的類別系統
$.Model
傳統的模型層
$.View
用戶端的模版系統
185
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