JavaScript获取鼠标点一个元素,获取鼠标点击的元素内的位置
摘要:
function getEventPosition(event) { //检测是否是触摸屏设备 let _isTouch = (function () { return navigator.maxTouchPoints > 0; })(); // 使用 getBoundingClientRect() 阅读全文
posted @ 2025-12-02 12:28 华安 阅读(3) 评论(0) 推荐(0)
浙公网安备 33010602011771号