当滑动条滑动到某一位置触发js

var t =document.documentElement.scrollTop||document.body.scrollTop;

判断t的位置,进行触发相应的js

原文地址:https://www.cnblogs.com/liu-heng/p/6907941.html