有 KoinComponent 可以解决。在任何类(class)中,您都可以简单地: class SampleClass : KoinComponent { val a : A? by inject() val b : B? by inject() }
確定! 回上一頁