1***@qq.com
1***@qq.com
  • 发布:2018-03-22 08:28
  • 更新:2018-03-22 08:28
  • 阅读:2691

错误提示:"Uncaught RangeError: Maximum call stack size exceeded." 怎么解决

分类:MUI

<script type="text/javascript">
var scrollToTopBox = document.getElementById('scrollToTop');
//返回按钮tap
scrollToTopBox.addEventListener('tap', function(e) {
e.stopPropagation();
mui("#scroll1").scroll().scrollTo(0,0,100);//滚动到顶部

});
document.getElementById('scroll1').addEventListener('scroll', function() {
if (mui('#scroll1').scroll().y <= window.innerHeight (-1) && scrollToTopBox.classList.contains('hide')){
scrollToTopBox.classList.remove('hide');
}else if(mui('#scroll1').scroll().y > window.innerHeight
(-1) && !scrollToTopBox.classList.contains('hide')){
scrollToTopBox.classList.add('hide');
}
});
</script>

2018-03-22 08:28 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复