在列表点击时间里加个弹窗,为什么this出错了?
aide吧
全部回复
仅看楼主
level 12
仰云霄 楼主
在列表点击时间里加个弹窗,为什么this出错了?[挖鼻]
2017年09月27日 16点09分 1
level 13
当前类名.this
2017年09月28日 04点09分 2
谢谢
2017年09月28日 18点09分
@quickollucky this代表当前代码所在的类。 在点击事件里面 this代表点击事件这个类。
2017年10月03日 13点10分
@quickollucky 类名不行。
2017年10月03日 13点10分
level 12
[滑稽][滑稽][滑稽][滑稽]
2017年09月28日 10点09分 3
level 10
TwoActivity.this
2017年09月28日 14点09分 4
谢谢
2017年09月28日 18点09分
@仰云霄 不用
2017年09月29日 08点09分
level 8
一看就是抄写代码的小白👈
2017年10月03日 05点10分 5
level 13
内部类不能用this
2017年10月03日 14点10分 6
1