Skip to Content
深入淺出 jQuery
book

深入淺出 jQuery

by Ryan Benedetti, Ronan Cranley
February 2012
Intermediate to advanced
540 pages
11h 39m
Chinese
GoTop Information, Inc.
Content preview from 深入淺出 jQuery
360 第九章
客戶端,見過伺服器!
使 service.php my_scripts.js 檔案,
index.html Developer tools(開 具) "Network"
頁籤,你會看見 JSON 資訊被載入。
很好,我們使用find和
each 來展示它,就像我們
處理 XML 一樣,對嗎?
不全然。
我們 道我們有 JSON 格式的 資料,因為它是
PHP 的。 在,
們(終 於) 要仔 細檢 提到 JSON
物件,好讓我們能夠把資料取回。
此函式顯示 JSON
物件裡回傳的紀錄
筆數。
在瀏覽器工具的
Network
"
區段裡,
JSON 資訊可以在
JSON 頁籤中被看到。
測試版
目前位置 4 361
處理 JSON 資料
function getDBRacers(){
$.getJSON( , function(json) {
if (json.runners. > 0) {
$('#finishers_m').empty();
$('#finishers_f').empty(); ...
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

HTML5 錦囊妙計

HTML5 錦囊妙計

Christopher Schmitt, Kyle Simpson
Pro JSF and HTML5: Building Rich Internet Components, Second Edition

Pro JSF and HTML5: Building Rich Internet Components, Second Edition

Hazem Saleh, Allan Lykke Christensen, Zubin Wadia

Publisher Resources

ISBN: 9789862764060