UI Events
The data read-only property of the TextEvent interface returns the last character added to the input element.
Value
A string representing the event data.
For textInput events, this is the character that was last entered.
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
