InputEvent 对象处理输入元素更改时发生的事件。
Event | Occurs When |
---|---|
oninput | The content (value) of an input element is changed |
Property | Returns |
---|---|
data | The inserted characters |
dataTransfer | An object containing information about the inserted/deleted data |
inputType | The type of the change (i.e "inserting" or "deleting") |
isComposing | If the state of the event is composing or not |
Method | Returns |
---|---|
getTargetRanges() | An array containing target ranges that will be affected by the insertion/deletion |
InputEvent 继承了以下所有属性和方法:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!