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.
我试过了
btn.click();
错误消息是“无法调用对象 ti.modules.titanium.ui.ButtonProxy@44f61 中的属性单击。它不是一个函数,它是“对象”'
btn.fireEvent('click');
这应该工作
btn.addEventListener('click',function() { Titanium.API.info('Button Clicked'); });