摘要:
区别:回调函数里面的this作用域不同,也就是this所指向的对象不同。1. T.() -> Unit 作为参数 //回调函数里this作用域是 类型T的实例 public inline fun <T> T.extFunc(block: T.() -> Unit): T { block() retu 阅读全文
posted @ 2020-01-20 12:57
yongfengnice
阅读(3961)
评论(0)
推荐(0)
浙公网安备 33010602011771号