Li *_*Jin 1 android this kotlin
我正在为Android制作自定义视图。我将通过调用clone(this)来克隆布局,但是当我使用clone(this@mycustomclassname)时,它会显示错误。
this
this@mycustomclassname
仍然很困惑。有人知道this@classnamekotlin 的含义吗?
this@classname
DVa*_*rga 5
这是合格的this。您可以this从外部范围访问。
由于this可能意味着不同的东西(部分引用的页面):
为了表示当前接收者,我们使用以下表达式: 在类的成员中,这是指该类的当前对象。 在扩展函数或带有接收器的函数文字中,这表示在点的左侧传递的接收器参数。
为了表示当前接收者,我们使用以下表达式:
归档时间:
6 年,12 月 前
查看次数:
126 次
最近记录: