compositionend
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
当文本段落的组成完成或取消时,compositionend 事件将被触发 (具有特殊字符的触发,需要一系列键和其他输入,如语音识别或移动中的字词建议)。
| Bubbles | Yes | 
| Cancelable | Yes | 
| Target objects | Element | 
| Interface | TouchEvent | 
Properties
| Property | Type | Description | 
|---|---|---|
| target只读 | EventTarget | 聚焦元素处理成分 | 
| type只读 | DOMString | 事件类型 | 
| bubbles只读 | boolean | 事件是否冒泡 | 
| cancelable只读 | boolean | 是否可以取消该事件 | 
| view只读 | WindowProxy | Document.defaultView(windowof the document) | 
| detail只读 | long(float) | 0. | 
| data只读 | DOMString(string) | 正在编辑的原始字符串,否则为空字符串。只读。 | 
| locale | DOMString(string) | 组合事件的语言代码 (如果可用);否则,为空字符串。只读。 | 
规范
| Specification | 
|---|
| UI Events> # event-type-compositionend> | 
Browser compatibility
Loading…