InputEvent
构造函数
InputEvent()
-
创建一个
InputEvent
对象。
属性
除继承自 UIEvent
和 Event
接口的属性外,还有以下属性:
InputEvent.data
只读-
返回当前输入的字符串,如果是删除操作,则该值为空字符串。
InputEvent.isComposing
只读-
返回一个布尔值,表明该事件是在触发
compositionstart
事件之后且触发compositionend
事件之前触发的,也就是表明当前输入的字符是输入法的中途输入。
方法
规范
Specification |
---|
Input Events Level 2 # interface-InputEvent |
UI Events # interface-inputevent |
浏览器兼容性
BCD tables only load in the browser