Skip to Content
JavaScript 設計模式
book

JavaScript 設計模式

by Stoyan Stefanov
March 2012
Intermediate to advanced
244 pages
4h 42m
Chinese
GoTop Information, Inc.
Content preview from JavaScript 設計模式
JavaScript 是網頁瀏覽器的語言。起初它只用來操作網頁上的少數幾種元素(例如圖片和
表單),但接著它開始急速發展。如今,它不只可以用來撰寫客戶端瀏覽器上的程式,還
可以用在越來越多的平台上。你也可以用它來編寫伺服器端的程式(使用 .NET Node.
js)、所有作業系統上的桌面應用程式、應用程式外掛(例如 Firefox Photoshop 的外
掛)、手機應用程式和命令列程式。
JavaScript 同時是一個不尋常的語言。它沒有 class,而函式(function)是它的第一級
rstclass 物件,會用在許多重要工作上。許多開發者一開始會覺得它缺了許多東西,
但近年來這種觀點已經改變。很有趣的是,像 Java PHP 之類的語言,近來開始在語言
中加入 closure(閉包)和匿名函式等功能,然而 JavaScript 程式員早就享受這些功能並且
用它們工作多時了。
Ja
vaScript 非常動態,所以你可以把它寫得非常像別的你已經很熟悉的語言。但最好還是
欣然接受它的與眾不同,學習它特有的寫作模式。
模式
模式在文字上更廣泛的意義是「普遍存在(反覆出現)的事件或物件,它可以用來產生事
物,可能是一個樣板或模型」(http://en.wikipedia.org/wiki/Pattern)。
在軟體開發的領域中,模式是對開發過程中普遍存在的各種問題所提出的解決方案。一個
模式並不是一堆程式碼,讓你可以複製貼上,而更像是好的實踐方式、有用的抽象概念,
或者解 ...
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 之美

JavaScript 之美

Anton Kovalyov
重構 JavaScript

重構 JavaScript

Evan Burchard

Publisher Resources

ISBN: 9789862764190