废话少说,直接上代码

$(function(){
        $(window).scroll(function(){
            var scrollTop = $(this).scrollTop();获取当前滚动条高度
            var scrollHeight = $(document).height();//获取整个浏览器高度
            var windowHeight = $(this).height();//获取当前页面的高度
            document.title = scrollTop + '|' + scrollHeight + "|" + windowHeight;
            if (scrollTop + windowHeight == scrollHeight) {
                             //此处填写你要加载分页的代码
            }
        })

    })

使用js弹出chrome windows通知提醒

废话少说,直接上代码 function notifyMe(notification_title, body) { if (Notification.permission !== "granted") Notification.re...

阅读全文

dropzone 插件只上传一张图片

<div> <div class="col-md-3"> <div class="form-group"> <label>你的头像</label> ...

阅读全文

vue使用v-html渲染的元素绑定事件

//vue html渲染标签,绑定test方法 <div v-html="data" @click="test"></div> //html渲染内容 //<button type="but...

阅读全文

欢迎留言