InputEvent:isComposing 属性
InputEvent.isComposing
只读属性返回一个布尔值,表示事件是否是在 compositionstart
之后且在 compositionend
之前触发的。
返回值
一个布尔值。
示例
js
const inputEvent = new InputEvent("syntheticInput", false);
console.log(inputEvent.isComposing); // 返回 false
规范
Specification |
---|
UI Events # dom-inputevent-iscomposing |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
isComposing |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.