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
),你得到的最後一個字符。