Element.assignedSlot

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

The assignedSlot property of the Element interface returns the HTMLSlotElement interface associated with the element.

Syntax

var htmlSlotElement = element.assignedSlot

Value

An instance of HTMLSlotElement.

Specifications

Specification
DOM Standard
# dom-slotable-assignedslot

Browser Compatibility

BCD tables only load in the browser