Commit 33ae8a49 by 刘海龙

111

parent 6b6b780d
......@@ -185,7 +185,7 @@
</div>
<script type="text/javascript">
new Vue({
el: '#app',
data: function() {
......@@ -202,11 +202,21 @@
}
},
created:function() {
},
mounted:function(){
$("#preloader").hide();
this.onTopTab(0)
$(window).scroll(function(){
var windowH=$(window).height();//设备可见区域高度
var documentH=$(document).height();//整个网页的高度(包括未显示的部分)
var scrollH=$(window).scrollTop();//滚动条滚动上去的高度
//或者 scrollH = $(document).scrollTop();
if(windowH+scrollH>=documentH){
//do something
console.log(1111)
}
}
},
computed: {
currentItems: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment