Skip to Content
MOBILE WEB程式設計--第二版
book

MOBILE WEB程式設計--第二版

by Maximiliano Firtman
December 2013
Intermediate to advanced
752 pages
16h
Chinese
GoTop Information, Inc.
Content preview from MOBILE WEB程式設計--第二版
功能與設備偵測
|
279
如果你想要瞭解 Modernizr 可測試的所有功能,以及設備的相容性結果,
只要造訪Modernizr Test Suite
http://modernizr.github.com/Modernizr/
test
)或 haz.io 即可。
為了瞭解它的動作原理,我們回到上一章,並試著瞭解表單功能相容性,Modernizr
給我們以下的旗標:
autofocus
屬性支援:
input.autofocus
placeholder
屬性支援:
input.placeholder
required
屬性支援:
input.required
日期∕時間選擇器:
inputtypes.datetime
日期選擇器:
inputtypes.date
範圍滑桿:
inputtypes.range
HTML5 表單驗證 API
formvalidationapi
有一些功能是擴充的。要使用擴充功能,你只要從 Modernizr GitHub
下載 JavaScript 檔案即可(
http://bit.ly/YbkxBt
)。
polyfill
polyfill 是一種 JavaScript 框架,它會模擬標準的語法來取代目前瀏覽器無法提供的功
能。因此藉由載入 polyfill,我們可以使用同一套標準的程式碼,即使瀏覽器不支援它。
Modernizr 團隊針對所有功能,持續地更新、維護一份優良的 polyfill 清單
http://mobilexWeb.com/go/polyfills ...
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

成為卓越程式設計師的38項必修法則

成為卓越程式設計師的38項必修法則

Pete Goodliffe
精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly

Publisher Resources

ISBN: 9789862769522