JS练习_触屏事件

预览:

源码:

    let box = document.querySelector(".box");
    box.ontouchstart = function (){
        console.log("start");
    }
    box.ontouchend = function (){
        console.log("end")
    }
posted @ 2021-09-22 15:23  博客zhu虎康  阅读(17)  评论(0编辑  收藏  举报