上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 83 下一页
摘要: 可能是:渲染时候 new content({ category:req.body.category, title:req.body.title, description:req.body.description, content:req.body.content }).save().then( fu 阅读全文
posted @ 2017-04-24 13:56 winyh 阅读(149) 评论(0) 推荐(0)
摘要: express 项目前后台公用样式 /static/js/bootstrap.min.js 阅读全文
posted @ 2017-04-20 15:24 winyh 阅读(419) 评论(0) 推荐(0)
摘要: 判断滚动条是否滚动到底部,需要用到DOM的三个属性值,scrollTop为滚动条在Y轴上的滚动距离。clientHeight为内容可视区域的高度。scrollHeight为内容的总高度 滚动条到底部的条件即为scrollTop + clientHeight == scrollHeight。对于整个H 阅读全文
posted @ 2017-04-17 13:52 winyh 阅读(1240) 评论(0) 推荐(0)
摘要: 判断滚动条到底部,需要用到DOM的三个属性值,即scrollTop、clientHeight、scrollHeight。 scrollTop为滚动条在Y轴上的滚动距离。 clientHeight为内容可视区域的高度。 scrollHeight为内容可视区域的高度加上溢出(滚动)的距离。 从这个三个属 阅读全文
posted @ 2017-04-15 17:46 winyh 阅读(61999) 评论(1) 推荐(8)
摘要: 移动端touch触屏滑动事件、滑动触屏事件监听! 一、触摸事件 ontouchstart、ontouchmove、ontouchend、ontouchcancel 目前移动端浏览器均支持这4个触摸事件,包括IE。由于触屏也支持MouseEvent,因此他们的顺序是需要注意的:touchstart → 阅读全文
posted @ 2017-04-15 17:44 winyh 阅读(10302) 评论(0) 推荐(0)
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 83 下一页