【发布时间】:2017-07-10 14:03:09
【问题描述】:
如何在TextField 内的Android 上的Appcelerator 中检测Backspace?
事件change 和keypressed 不起作用。
var text_phone_1 = Ti.UI.createTextField({
top: 40,
left: '22.5%',
width: '10%',
returnKeyType: Titanium.UI.RETURNKEY_DONE,
keyboardType: Titanium.UI.KEYBOARD_PHONE_PAD,
hintText: '●',
textAlign: 'center',
maxLength: 1,
});
【问题讨论】:
-
您好,欢迎来到 StackOverflow。请花一些时间阅读帮助页面,尤其是名为"What topics can I ask about here?" 和"What types of questions should I avoid asking?" 的部分。更重要的是,请阅读the Stack Overflow question checklist。您可能还想了解Minimal, Complete, and Verifiable Examples。
标签: android titanium appcelerator