// 规则滑动触发
scroll: function () {
// 窗口撑开
document.getElementsByTagName('body')[0].className = 'bodyOpen';
var t = this;
document.getElementById('pact').addEventListener('scroll', function () {
//读取内容区域的真实高度(滚动条高)
// console.log('滚动条高' + this.scrollHeight);
//读取滚动条的位置
// console.log('滚动条的位置' + this.scrollTop);
//读取元素的高度
// console.log('元素的高度' + this.clientHeight)
if (this.scrollHeight <= this.scrollTop + this.clientHeight) {
console.log("到达底部");
}
})
},