Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Sencha Touch 2 的 itemtap 事件中更改单个 itemtpl?单击项目时,我想更改 HTML 记录的代码。如果我尝试使用 dataview 上的 setItemTpl() 方法执行此操作,它会更改所有列表的记录。谢谢
在“itemtap”事件中,您可以从参数中找到目标。然后获取目标元素
var target = Ext.get(target);
然后申请,setHtml()在那里运作并做你想做的事。
setHtml()