SOURCE

console 命令行工具 X clear

                    
>
console
$(function() {
  $("#touch").click(function(event) {
    alert(navigator.cpuClass);
    if (navigator.vibrate) {
      navigator.vibrate(200); 
    } else if (navigator.webkitVibrate) {
      navigator.webkitVibrate(200);
    }
  })
})
<div id="touch">
</div>
div {
  width: 100px;
  height: 100px;
  background-color: black;
}

div:hover {
  background-color: gray;
}