摘要:
一,代码: binding.button1.setOnClickListener { runBlocking { suspend fun download() { // 模拟下载任务 val time=3000L logX("模拟下载用时: = $time") delay(time) } val j 阅读全文
posted @ 2025-07-26 11:38
刘宏缔的架构森林
阅读(17)
评论(0)
推荐(0)
摘要:
一,代码: binding.button1.setOnClickListener { //先定义一个Int类的扩展函数 fun Int.square() = this * this //定义一个带接收器的lambda表达式 val squareFun: Int.()->Int = Int::squa 阅读全文
posted @ 2025-07-26 11:36
刘宏缔的架构森林
阅读(32)
评论(0)
推荐(0)
浙公网安备 33010602011771号