The InputEvent Object handles events that occur when an input element is changed.
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 |
The InputEvent inherits all the properties and methods from:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!