Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
jQuery - Introdução
Search
Diogo Benicá
March 04, 2013
Programming
64
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
jQuery - Introdução
Introdução ao jQuery
Diogo Benicá
March 04, 2013
Other Decks in Programming
See All in Programming
contenteditable と日本語入力に向き合う
colorful12
0
200
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
気持ちぃ〜角丸 Squircle
ryu1013
0
310
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
ジョジョの世界をXRで再現する
mofurune
0
160
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
630
ChromeでローカルLLM
ryu1013
0
140
Domain-Driven Transformation
hschwentner
2
2.3k
Next.js: The final boss of Web Performance
guaca
0
250
すこし踏み込む CancellationToken
htkym
2
1.7k
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Scaling GitHub
holman
464
140k
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