InputEvent: isComposing 屬性

Baseline 已廣泛支援

此功能已成熟,並可在許多裝置和瀏覽器版本上執行。自 2023 年 3 月以來,它已在各種瀏覽器中可用。

InputEvent.isComposing 只讀屬性返回一個布林值,表示事件是否在 compositionstart 之後但在 compositionend 之前觸發。

布林值。

示例

js
const inputEvent = new InputEvent("syntheticInput", false);
console.log(inputEvent.isComposing); // return false

規範

規範
UI 事件
# dom-inputevent-iscomposing

瀏覽器相容性

另見