当前位置: 代码迷 >> JavaScript >> JS 搜集
  详细解决方案

JS 搜集

热度:245   发布时间:2012-10-16 09:57:37.0
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);

  相关解决方案