GlobalEventHandlers.onlostpointercapture

跳转到:

这篇翻译不完整。请帮忙从英语翻译这篇文章

The onlostpointercapture EventHandler property of the GlobalEventHandlers interface returns the event handler (function) for the lostpointercapture event type.

语法

window.onlostpointercapture = functionReference

 

例子

<html>
<script>
function overHandler(ev) {
 // Determine the target event's lostpointercapture handler
 var lostCaptureHandler = ev.target.onlostpointercapture;
}
function init() {
 var el=document.getElementById("target");
 el.onlostpointercapture = overHandler;
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
</body>
</html>

 

规范

规范 状态 评论
Pointer Events – Level 2
onlostpointercapture
Working Draft  

 

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 57.0 ? ? ? 44 ?
Feature Android Android Webview Edge Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 57.0 ? ? ? ? 44 ? 57.0

See also

 

 

<embed height="0" id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd" type="application/thunder_download_plugin" width="0">

文档标签和贡献者

 此页面的贡献者: jvua
 最后编辑者: jvua,