`onmousewheel` ...
onmousewheel
<script>
var scrollFunc = function (e){
//其實我一開始也不知道用啥
//console.log(e)我們可以列印一下
//然後通過觀察看他裡面的變數哪個再上滾下滾時候不同
//可以通過這傳入值e.deltaY的正負來判斷
//deltaY大於0為下滾,deltaY小於0為上滾
}
window.onmousewheel =scrollFunc
</script>