国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
document對象的屬性和方法

document屬性

activeElement = [object]
alinkColor = #0000ff
all = [object]
anchors = [object]
applets = [object]
attributes = null
bgColor = #336699
body = [object]
childNodes = [object]
compatMode = BackCompat
cookie = style=null
defaultCharset = gb2312
dir =
doctype = null
documentElement = [object]
domain =
embeds = [object]
fgColor = #000000
fileCreatedDate = 07/04/2003
fileModifiedDate = 07/07/2003
fileSize = 5514
fileUpdatedDate =
firstChild = [object]
forms = [object]
frames = [object]
images = [object]
implementation = [object]
lastChild = [object]
lastModified = 07/07/2003 10:38:04    
linkColor = #0000ff
links = [object]
location = file:///E:/文章/網(wǎng)頁對象.htm     
media =
mimeType = HTML Document
nameProp = 對象屬性顯示器
namespaces = [object]
nextSibling = null
nodeName = #document
nodeType = 9
nodeValue = null
onactivate = null
onafterupdate = null
onbeforeactivate = null
onbeforedeactivate = null
onbeforeeditfocus = null
onbeforeupdate = null
oncellchange = null
onclick = null
oncontextmenu = null
oncontrolselect = null
ondataavailable = null
ondatasetchanged = null
ondatasetcomplete = null
ondblclick = null
ondeactivate = null
ondragstart = null
onerrorupdate = null
onfocusin = null
onfocusout = null
onhelp = null
onkeydown = null
onkeypress = null
onkeyup = null
onmousedown = null
onmousemove = null
onmouseout = null
onmouseover = null
onmouseup = null
onmousewheel = null
onpropertychange = null
onreadystatechange = null
onrowenter = null
onrowexit = null
onrowsdelete = null
onrowsinserted = null
onselectionchange = null
onselectstart = null
onstop = null
ownerDocument = null
parentNode = null
parentWindow = [object]
plugins = [object]
previousSibling = null
protocol = File Protocol
readyState = complete
referrer =
scripts = [object]
security = 這種類型的文檔沒有安全證書。
selection = [object]
styleSheets = [object]
title = 對象屬性顯示器
URL = file://E:\文章\網(wǎng)頁對象.htm
URLUnencoded = file://E:\文章\網(wǎng)頁對象.htm
vlinkColor = #800080

document方法:

open( )
close( )
clear( )
write( )
writeln( )


getElementById(id)                                        返回指定元素的引用
getElementsByName(elementName)      返回name="elementName"的所有XHTML元素對象的列表
getElementsByTagName(name)              返回文檔中所有匹配的元素的集合

createComment(data)                                 創(chuàng)建XHTML注釋<!--data-->
createElement(name)                                  創(chuàng)建指定類型的新元素
createTextNode(text)                                     創(chuàng)建一個純文本結(jié)點


element方法:

getAttribute(id)                                  返回指定屬性的值
setAttribute(id,value)                             給屬性賦值
removeAttribute(id)                               移除指定屬性和它的值
getElementsByTagName(name)         返回結(jié)點內(nèi)所有匹配的元素的集合

node方法:

appendChild(child)                                  給指定結(jié)點添加一個新的子結(jié)點
removeChild(child)                                   移除指定結(jié)點的子結(jié)點
replaceChild(newChild,oldChild)          替換指定結(jié)點的子結(jié)點
insertBefore(newChild,refChild)            在同一層級的結(jié)點前面插入新結(jié)點
hasChildNodes()                                      如果結(jié)點有子結(jié)點則返回true

node屬性:

nodeName                                       以字符串的格式存放結(jié)點的名稱
nodeType                                         以整型數(shù)據(jù)格式存放結(jié)點的類型
nodeValue                                        以可用的格式存放結(jié)點的值
parentNode                                      指向結(jié)點的父結(jié)點的引用
childNodes                                      指向子結(jié)點的引用的集合
firstChild                                           指向子結(jié)點結(jié)合中的第一個子結(jié)點的引用
lastChild                                           指向子結(jié)點結(jié)合中的最后一個子結(jié)點的引用

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
DOM對象常用對象的方法和屬性
操作HTMLDOM文檔
JavaScript讀書筆記
通俗易懂的來講講DOM
js 中for in的使用
DataReader轉(zhuǎn) object對象
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服