Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
jQuery - Introdução
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Diogo Benicá
March 04, 2013
Programming
0
63
jQuery - Introdução
Introdução ao jQuery
Diogo Benicá
March 04, 2013
Tweet
Share
Other Decks in Programming
See All in Programming
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
140
CSC307 Lecture 03
javiergs
PRO
1
490
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.6k
組織で育むオブザーバビリティ
ryota_hnk
0
180
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.4k
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.7k
要求定義・仕様記述・設計・検証の手引き - 理論から学ぶ明確で統一された成果物定義
orgachem
PRO
1
230
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
210
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.6k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Music & Morning Musume
bryan
47
7.1k
ラッコキーワード サービス紹介資料
rakko
1
2.3M
Test your architecture with Archunit
thirion
1
2.2k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
Writing Fast Ruby
sferik
630
62k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Design in an AI World
tapps
0
150
HDC tutorial
michielstock
1
390
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
120
Color Theory Basics | Prateek | Gurzu
gurzu
0
200
Transcript
A biblioteca javascript jQuery Diogo Benicá
Escreva menos Faça mais
Encontrar elementos em um HTML Alterar conteúdo HTML Ouvir ações
do usuário Animar conteúdo HTML Conversar com outras páginas/sistemas
Javascript! Mas antes...
DOM html head title Meu título body h1 Notícias p
Primeira notícia <html> <head> <title> Meu título </title> </head> <body> <h1>Notícias</h1> <p> Primeira notícia </p> </body> </html>
Porém, os navegadores tem pequenas diferenças no DOM
None
Legenda Não! Evitar Yeah! Exemplos
Encontrar elementos em um HTML <body> <a href=”#” id=”meu_link” class=”classe_do_link”>
</body> $(“a”) $(“#meu_link”) $(“.classe_do_link”) html jQuery $(“a.classe_do_link”)
<body> <span id=”meu_texto”>Hello jQuery!</span> </body> $(“#meu_texto”).html(“Hello!”) $(“#meu_texto”).append(“Hello!”).width(170) html jQuery Alterar
conteúdo HTML $(“#meu_input”).val(“jQuery”)
<a href=”#” id=”meu_link”> $(“#meu_link”).click( ); html jQuery Ouvir ações do
usuário function(){ $(“#login-box”).show(); $(“#login-box > p”).html(“Bem-vindo!”); }
<div id=”minha_box”></div> $(“#meu_link”).animate({ }); html jQuery Animar conteúdo HTML opacity:
0.25, left: “+=50”, backgroundColor: “red” Com plugin
http://site.com/produtos $.getJSON(“http://site.com/produtos”, function(dados){ ); servidor jQuery Conversar com outras páginas/sistemas
GET json //dados é o retorno $.each(dados, function(){ // Loop para cada item que retornou no json });
$.getJSON(“http://site.com/produtos”, função) atalho para $.ajax({ dataType: “json”, url: “http://site.com/produtos”, success:
função });
Fim