37.document.createElement()和document.createTextNode()方法可以创建新的元素,以及新的文本
38.Node.appendChild(),Node.insertBefore(),Node.replaceChild()方法,可以将新创建的元素,加入到文档中
39.总结前2条,就是创建新节点(包括元素节点和文本节点),都是通过调用document上的create方法完成的。但是要将新创建的节点显示到浏览器上,还需要调用Node上的相关方法
40.HTMLElement Object还定义了一个innerHTML属性,这个属性不是W3C标准,不过由于比较方便,使用范围很广,而且现代浏览器都支持。该属性的值,是一段表示所有
子元素的HTML文本。如果对这个属性赋值,浏览器会调用其HTML解析器,解析传递参数的值,并用解析的结果替换掉原本的
子元素
41.非常早的IE(IE4,或许还有5和6),提供了一套非标准的API,用于实现遍历文档的功能。比如document.children,功能类似于W3C的document.childNodes。这些API现在已经基本用不到了
42.早期的IE还提供了另外一些乱七八糟的API,比如document.all什么的, 现在也是基本看不到了,就不多说了
分享到:
相关推荐
IronPython.dll和Microsoft.Scripting.dll,用于C#动态调用 IronPython
( [Classic.Shell.Scripting(第1版)].(Classic.Shell.Scripting).Arnold.Robbins.文字版.epub )
Game.Scripting.Mastery 游戏脚本高级编程英文版,中文版翻译烂了点
powershell Introduction to programming grammar, specifications, cases, etc., introductory books for beginners
Packtpub.Blender.2.49.Scripting.Apr.2010.rar
FriendsofED.DOM.Scripting.Dec.2010.rar
Microsoft.Press.Windows.PowerShell.Scripting.Guide.Feb.2008
Wrox.Shell.Scripting.Aug.2011.rar
Blueprints.Visual.Scripting.for.Unreal.Engine.2015虚幻引擎蓝图教程
Maya.3D.-.Mel.Scripting maya 脚本语言的入门教程,很适合初学者。
Python Scripting for ArcGIS is a guide for experienced users of ArcGIS Desktop to get started with Python scripting without needing previous programming experience. Experience with other scripting or ...
Python.Scripting.for.Computational.Science.3rd.Edition.pdf
游戏脚本设计完全掌握-Game.Scripting.Mastery.part2.rar
AdvancED.DOM.Scripting.Jul.2007.pdf
UNIX.Oracle.Shell.Scripting
Packt.Unity.Game.Development.Scripting.2014
Apress.DOM.Scripting.Web.Design.with.JavaScript.and.the.Document.Object.Model.2nd.Edition
Chapter 5: Scripting by Numbers Chapter 6: Loose Names Sink Scripts: Bringing Sanity to Filenames Chapter 7: Treading a Righteous PATH Chapter 8: The Dating Game Chapter 9: Good Housekeeping: ...
Apress.Practical.JavaScript.DOM.Scripting.and.Ajax.Projects
Springer.Scientific.Data.Analysis.using.Jython.Scripting.and.Java