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 快速入门
Search
uictechparty
July 08, 2012
Programming
150
1
Share
jQuery 快速入门
By xingzhi, 2n TechParty@UIC
uictechparty
July 08, 2012
More Decks by uictechparty
See All by uictechparty
产品经理是做什么的呢?
uictechparty
1
230
找人
uictechparty
3
470
香港研究生申请经验分享
uictechparty
0
420
css.pdf
uictechparty
1
220
Introduction to Design Patterns
uictechparty
2
160
编写高质量Java代码的7个建议
uictechparty
2
190
视觉障碍出行辅助仪 -The Third Eye
uictechparty
1
130
Introduction to NodeJS
uictechparty
1
220
Introduction to Hadoop
uictechparty
3
240
Other Decks in Programming
See All in Programming
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
210
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
1
350
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
1
490
AIエージェントの隔離技術の徹底比較
kawayu
0
270
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
3
960
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
570
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
290
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
230
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
4
710
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
230
iOS26時代の新規アプリ開発
yuukiw00w
0
160
Cloudflare で始める Data Platform
ta93abe
0
190
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
700
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
810
Prompt Engineering for Job Search
mfonobong
0
310
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
570
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
740
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
Designing Powerful Visuals for Engaging Learning
tmiket
1
370
Transcript
jQuery 快速入门 TechParty@UIC 行之
内容 1. jQuery 的简介及其优势 2. jQuery 的选择器 3. jQuery 的DOM操作
4. jQuery 的事件
jQuery 的简介及其优势
“每多学一点知识,就少写一行代码” ——《锋利的jQuery》 (推荐) 轻量级javaScript类库,简化js操作, 用于快速处理文 档、事件、动画、ajax等。 由John Resig于2006年首次发布, 免费开源。 另有:jQuery
Mobile 、 jQuery UI、 jQuery 插件
" By crawling Alexa top 100 000 websites I found
out that 45% of them use a Javascript framework and among those who use a framework 28% of them use Jquery. " http://goo.gl/rXUGG
兼容多浏览器 强大的选择器 简单的DOM操作 强大的事件处理机制 简化Ajax操作 链式操作(chaining) 面向集合,隐性迭代(implicit iteration) 支持扩展 (jQuery
插件)
调用 Google 提供的 jQuery <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> why? http://goo.gl/IFgGT http://goo.gl/nkVMG
jQuery API查询 http://goo.gl/7X2fo
jQuery 的选择器
常见CSS选择器: 标签选择器 div {......} ID 选择器 #myID {......} 类选择器 .myClass
{......} 后代选择器 #myID div{......} 组群选择器 div, #myID, .myClass {......} jQuery 基本选择器与CSS选择器几乎一样! 在css选择器的基础上添加更多功能。
$ 美刀符号,表示 jQuery jQuery("myID") = $("#myID") document.getElementById("myID") $() ——> 实例化操作函数。
jQuery 基本选择器, 同CSS选择器: $("#myID") 选择id为myID的元素 $(".myClass") 选择class 为 myClass 的元
素 $("span") 选择所有span标签元素 $("span,div") http://goo.gl/xmfKh
除此之外,还有: 层次选择器 过滤选择器 表单选择器 如: $("div:first") 选取文档中第一个div 更多了解请看API文档。
jQuery 的DOM操作
DOM: Document Object Model 文档对象模型 DOM 树 DOM 操作:查找节点、创建节点、删改节点、属性操 作
样式操作等。 http://goo.gl/9o7GF
jQuery 的事件
加载DOM: $(document).ready() 代替 onload 方法 http://goo.gl/rckPE
END THANK YOU
REF: 《锋利的jQuery》