06.document

本文介绍了HTML文档对象模型(DOM)中的核心对象——Document,包括其拥有的各种实例属性如body、location、title等,以及methods如createElement、querySelector等,这些是Web开发中用于操作和访问HTML页面结构的关键接口。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

document = {
    // 实例属性
    activeElement : '',
    adoptedStyleSheets : '',
    body : '',
    characterSet : '',
    childElementCount : '',
    children : '',
    compatMode : '',
    contentType : '',
    cookie : '',
    currentScript : '',
    defaultView : '',
    designMode : '',
    dir : '',
    doctype : '',
    documentElement : '',
    documentURI : '',
    embeds : '',
    featurePolicy : '',
    firstElementChild : '',
    fonts : '',
    forms : '',
    fragmentDirective : '',
    fullscreenElement : '',
    fullscreenEnabled : '',
    head : '',
    hidden : '',
    images : '',
    implementation : '',
    lastElementChild : '',
    lastModified : '',
    links : '',
    location : '',
    pictureInPictureElement : '',
    pictureInPictureEnabled : '',
    plugins : '',
    pointerLockElement : '',
    readyState : '',
    referrer : '',
    scripts : '',
    scrollingElement : '',
    styleSheets : '',
    timeline : '',
    title : '',
    URL : '',
    visibilityState : '',
    //  实例方法
    adoptNode:function () {},
    append:function () {},
    caretPositionFromPoint:function () {},
    caretRangeFromPoint:function () {},
    close:function () {},
    createAttribute:function () {},
    createAttributeNS:function () {},
    createCDATASection:function () {},
    createComment:function () {},
    createDocumentFragment:function () {},
    createElement:function () {},
    createElementNS:function () {},
    createEvent:function () {},
    createExpression:function () {},
    createNodeIterator:function () {},
    createNSResolver:function () {},
    createProcessingInstruction:function () {},
    createRange:function () {},
    createTextNode:function () {},
    createTreeWalker:function () {},
    elementFromPoint:function () {},
    elementsFromPoint:function () {},
    evaluate:function () {},
    exitFullscreen:function () {},
    exitPictureInPicture:function () {},
    exitPointerLock:function () {},
    getAnimations:function () {},
    getElementById:function () {},
    getElementsByClassName:function () {},
    getElementsByName:function () {},
    getElementsByTagName:function () {},
    getElementsByTagNameNS:function () {},
    getSelection:function () {},
    hasFocus:function () {},
    hasStorageAccess:function () {},
    importNode:function () {},
    mozSetImageElement:function () {},
    open:function () {},
    prepend:function () {},
    querySelector:function () {},
    querySelectorAll:function () {},
    releaseCapture:function () {},
    replaceChildren:function () {},
    requestStorageAccess:function () {},
    startViewTransition:function () {},
    write:function () {},
    writeln:function () {},
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值