在Java中,我们可以通过getClass()解析变量的类,如something.getClass()。在Kotlin我知道something.javaClass这很好但我希望能够以类似的方式获得KClass。
確定! 回上一頁