x
 
<!DOCTYPE html>
<html>
<body>
<h1>DOM touchmove 事件</h1>
<p ontouchmove="myFunction()">请触摸此段落,然后移动手指以触发将写入 "Hello World" 的函数。</p>
<p><b>注释:</b>触摸事件仅适用于触摸设备。</p>
<p id="demo"></p>
<script>
function myFunction() {
  document.getElementById("demo").innerHTML = "Hello World";
}
</script>
</body>
</html>