[]如何为list内部的button添加事件

已邀请:

cuixueying

赞同来自:

你可以通过list.getItem(xxx).getChildByName(),通过button的name属性得到button的引用,为button添加点击事件。

weiyongwill

赞同来自:

这样需要用for语句对每个list元素操作一遍?

要回复问题请先

商务合作
商务合作