标签: android kotlin
fun search(key:String, callback: ((novels:ResultInfo)->??)){
答案 0 :(得分:7)
fun search(key: String, callback: (novels: ResultInfo) -> Unit): Unit { ... }
请参阅Unit
我还声明函数有效返回void