<script>
document.getElementById("inputid").addEventListener('mousedown', function(event) {
event.preventDefault()
var onceweb
window.onmousemove=function(e){
e.preventDefault()
console.log(e)
if(dis - e.clientY > 0){
console.log("向上")
document.getElementById("inputid").value++
}else{
console.log("向下")
document.getElementById("inputid").value--
}
onceweb = e.clientY
}
window.onmouseup=function(e){
window.onmousemove=null
}
});
</script>