1.append() 向匹配元素內部追加內容
2.appendTo() 向匹配元素追加到另一個指定的元素集合中($("p").appendTo("div");)
3.prepend() 向匹配元素內部前置內容
4.prependTo() 匹配的元素追加到另一個指定的元素元素集合中
5.after() 匹配的元素之後插入內容
6.before() 匹配的元素之前插入內容
7.insertAfter() 匹配的元素插入到另一個指定的元素集合後面
8.insertBefore() 匹配的元素插入到另一個指定的元素集合後面
9.warp()把所有匹配的元素用其他元素的結構化標記包裹起來
10.unwrap() 移出元素的父元素
11.wrapAll() 將所有匹配的元素用單個元素包裹起來
12.wrapInner()匹配的元素的子內容(包括文本節點)用一個HTML結構包裹起來
13.replaceWith() 匹配的元素替換成指定的HTML或DOM元素
14.replaceAll()匹配的元素替換掉所有 selector匹配到的元素
15.empty() 刪除匹配的元素集合中所有的子節點
16.remove() 從DOM中刪除所有匹配的元素(包括元素中的內容)但除了這個元素本身得以保留之外,其他的比如綁定的事件,附加的數據等都會被移除。
17.detach() 從DOM中刪除所有匹配的元素。與remove()不同的是,所有綁定的事件、附加的數據等都會保留下來。
18.clone() 克隆匹配的DOM元素並且選中這些克隆的副本
jQuery文檔處理
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
w3a45y6trr etrd
rejesaw280
2022-06-18 12:53:13
Skincell Advanced Review - Have you read the ingredients, benefits and side effects?
pjhjakhfj
2022-06-17 14:40:48
GOODMAN增大丸三大效果
LouisRodgers5773
2022-06-17 11:07:57
光年动画电影简介:为什么在阿联酋被禁?
dimyatiel84
2022-06-17 04:56:34
Logging While Drilling Market Research Report and Forecast to 2030
deepak.s.msg
2022-06-15 20:58:58
MetaboFix (2022 Update) Ingredients Benefits Side Effects Price?
gnjdjgga
2022-06-15 13:22:56
VIDEA Teljes film Magyar
firdauskomarove
2022-06-15 13:00:49
壯陽藥誤區你是否有正確使用壯陽藥?
LouisRodgers5773
2022-06-14 11:46:37
Rental Outdoor LED Display Market Growth, Trends And Forecast 2030
chhidami.a.msg
2022-06-13 19:20:27
哪些壞習慣會傷害腸胃健康
LouisRodgers5773
2022-06-10 12:13:01
加強營養的誤區有哪些
LouisRodgers5773
2022-06-10 11:34:59
Casino Management System Market Growth, Trend, Drivers, Challenges, Key Companies by 2027
pradipthakre06
2022-06-09 20:45:58
Huawei H35-660_V2.0 Practice Exam - Shortcut to Success in Huawei Exam
stevenpal258
2022-06-08 17:44:56
肝臟功能不好的人手腳有哪些症狀
LouisRodgers5773
2022-06-08 15:22:59
Fuel Cell for Data Centers Market Popularity Across the Globe by 2030
chhidami.a.msg
2022-06-07 21:53:11