预览:
源码:
let box = document.querySelector(".box");
box.ontouchstart = function (){
console.log("start");
}
box.ontouchend = function (){
console.log("end")
}
标签:box,function,console,log,ontouchend,练习,JS,源码,触屏
来源: https://www.cnblogs.com/zhuhukang/p/15320066.html