- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
jquery操作dom5.10 1738(JQuery operation, dom5.10, 1738)
jquery操作dom5.10 1738(JQuery operation, dom5.10, 1738)
DOM common operation
1. search nodes
2. insert node
3. delete node
4. replication node
5. node replacement
6. node package
------------------------------------
1.: find a node using a selector
Not expressly, in order to distinguish jQuery and DOM objects, usually used in the jQuery statement, before using the variable name plus $
Var $pobj = $(P);
Node attribute can be read or assignment
- get the object attribute or set attribute value
(attr) method
The use of grammar
Attr (properties [], values)
- remove element attribute
(removeAttr) method
Text - get the value of the element
The object (.Text);
China
2. insert node
Append (2.1) to the inside of every matched element append
$(P).Append (b: /b);
Note: you can even write obj.append (.Append) (two) continuous adding
AppendTo (2.2) appends all matched elements to guide elements, reverse $append equivalent (P).Append (b: /b);
2.3 (prepend) content of the element content to match each pre
$(P).Prepend (b: /b);
The effect of pb /b /p: I want to say hello
2.4 (prependTo) will lead all matched elements to the specified element
$(b hi /b).PrependTo (P);
After (2.5) insert content in the back of each of the matched elements
$(P).After (b: /b);
The effect of ppb/b
2.6 (insertAfter) to insert all of the matched elements to the back of the specified element
$(b hi /b).InsertAfter (P);
2.7 (before) content in each element prior to insertion
$(P).Before (b: /b);
2.8 (insertBefore) to insert all of the matched elements to the front of the specified element
$(b hi /b).InsertBefore (P); b/bp/p
-----------------------------------------------
3. delete node
(remove) method
(.Remove) the object object is deleted
$(p:contains ()) (.Remove);
$(P).Remove (contains () = = = = =);
4. replication node
(clone) method
(.Clone) the object object replication, you can also add.AppendTo (behind) to copy out to add to another object
Note: Clone (true) said the cloned object inherits the source
您可能关注的文档
- html常用标签全集(HTML tags).doc
- hp-5l6l激光打印机卡和加粉处理技巧(Hp-5l6l laser printer card and powder handling skills).doc
- html标签 , 属性名称 , 简介(HTML tags, property names, profiles).doc
- html滚动代码(HTML scroll code).doc
- htm标签1-4(Htm tag 1-4).doc
- hugo boss为成功人士塑造专业形象(Hugo Boss creates a professional image for successful people).doc
- hurat1基因5 utr区荧光素酶表达重组体的构建(Construction of luciferase expression recombinant in hurat1 5 UTR region).doc
- hpad领衔 汉管理王科技亮相2011德国cebit展(Hpad led by Han management Wang technology unveiled 2011 German CeBIT Exhibition).doc
- html标签大全(HTML tags Daquan).doc
- hvdc(高压直流输电).doc
- 2025国家电网招聘考试试题预测试卷【综合题】附答案详解.docx
- 2025国家电网招聘考试考试黑钻押题【模拟题】附答案详解.docx
- 2024年国家电网招聘考试模考模拟试题及参考答案详解(能力提升).docx
- 2025国家电网招聘考试考前冲刺试卷含答案详解【培优B卷】.docx
- 2024国家电网招聘考试通关考试题库附参考答案详解(模拟题).docx
- 2024年焊工考试考前冲刺试卷及参考答案详解AB卷.docx
- 2025年国家电网招聘考试模考模拟试题及参考答案详解【巩固】.docx
- 2024年会计硕士测试卷附完整答案详解(网校专用).docx
- 2025年国家电网招聘考试题库检测试题打印(精选题)附答案详解.docx
- 2025国家电网招聘考试经典例题【培优B卷】附答案详解.docx
文档评论(0)