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程式設計--第二版
第十八章
除錯與效能
在行動 Web 開發世界之中,除錯與效能最佳化的困難程度僅次於測試,但是別擔心,我
們有很多方法可以克服它們。我們已在第四章討論過測試工具與技術。在本章中,我們
會將焦點放在更進階的除錯與效能最佳化功能。
除錯
這幾年來,我一直在抱怨:說到工具與文件,Web 開發人員是次等公民(與本機開發人
員相較)。幸運的是,從去年開始,廠商已經開始瞭解到 Web 開發者需要更多除錯與效
能測量工具,所以現在可用的工具選項已經愈來愈多了。
伺服器端除錯
若要針對伺服器端的偵測動作、調適,或內容傳遞指令碼進行除錯,我們在真正設備工
作之前,可以先使用 HTTP 工具。
使用者代理程式詐騙
使用者代理程式詐騙工具可以讓用戶端改變它們向伺服器表明身分的方式,讓伺服器以
為瀏覽器正在請求網頁。例如,我們可以謊稱桌機瀏覽器是行動瀏覽器來讓伺服器上
當。我們可以使用這些工具來找出行動重新導向的錯誤,以及偵測框架,如第九章所
述,而不需要用到真正的設備,甚至模擬器。
656
|
第十八章
接著我們可以瀏覽任何網站,並檢視伺服器如何管理使用者代理程式,以及它傳遞哪些
內容(請記得在結束除錯對話之後回復成預設的使用者代理程式,否則你的瀏覽器會發
生一些問題!)。
User Agent Switcher
http://www.mobilexW ...
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