getComponent

abstract fun getComponent(id: String): Component

尝试根据ID获取一个指定的组件对象。如果未找到则会抛出 NoSuchComponentException.

Throws

当没有找到目标ID的组件时