SOURCE

console 命令行工具 X clear

                    
>
console
// var adId = window.setInterval(function () {
//   var win = window.parent || window;
//   var ele = win.document.querySelector('#exampleTop') || win.document.getElementById('exampleTop');
//   if (ele) {
//     ele.setAttribute('style', 'display:none;');
//     window.clearInterval(adId);
//   }
// }, 2000);
function GetDetails(event) {
  var text = document.getElementById("myInput");
  if ('detail' in event) {
    text.value = event.detail;
  } else {
    alert("Your browser does not support the event.detail property!");
  }
}
快速点击按钮, 显示的 input 中会显示 event.detail 的值.
<br/>
<br/>
<button onclick="GetDetails(event)">
  获取 event.detail
</button>
<input id="myInput" type="text">