0
我想通过使用按键事件的textarea.but按键事件不工作 一个iPhone请帮我找到任何其他替代方案找到keycode.Thanks提前。KeyCode for text area keypressed event appcelerator titanium
我想通过使用按键事件的textarea.but按键事件不工作 一个iPhone请帮我找到任何其他替代方案找到keycode.Thanks提前。KeyCode for text area keypressed event appcelerator titanium
当您看到documentation时,看到确实有keypressed
事件,但这仅适用于Android和Windows Phone。
在iOS设备上,你将不得不使用change
事件:http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TextArea-event-change
一旦被触发,你从textarea的价值,$.textArea.value
(如果你的textarea的ID是textArea
),你得到的最后一个字符。