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.
我有一个面板作为 xtype:'label'
当我单击锚标记中的文本时,我想调用一个函数。
我们可以在煎茶触摸中做到这一点吗?
尝试这样的事情:
{ xtype: 'label', html: '<a href="#" onclick="MyApp.app.getController(\'ControllerName\').myFunction(); return false;">My link</a>' }