`

JS 收集

阅读更多

//判读一个对象是否存在

if(document.getElementById("ytlx")){}else{}

 

//在页面获取鼠标点击的位置

  function show_coords(event)
  {
      x=event.clientX
      y=event.clientY
      alert("X 坐标: " + x + ", Y 坐标: " + y)
  }

<body onmousedown="show_coords(event)">

 

//是js同步加载

DWREngine.setAsync(false);

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics