StackOverflow 文档 Kotlin 教程 委托属性 定制授权 定制授权 Created: November-22, 2018 class MyDelegate { operator fun getValue(owner: Any?, property: KProperty<*>): String { return "Delegated value" } } val foo : String by MyDelegate() println(foo) 该示例打印 Delegated value 延迟初始化可观察的属性