const box = document.querySelector(".box");
const boxChildren = box.querySelector(".boxChildren");
box.onscroll = function () {
//scroll 家族返回值无单位数值 只读
//被卷上去的距离无单位
console.log(box.scrollTop);
//被卷左去的距离无单位
console.log(box.scrollLeft);
//自身的总高度-不包含自身边框
console.log(box.scrollHeight);
//自身的总高度-不包含自身边框
console.log(box.scrollWidth);
}