2017年4月11日
摘要: 滚动到底部加载的判断条件:滚动高度 + 可视高度 >= 文档高度 jQuery/Zepto写法: $(window).scrollTop() + $(window).height() >= $(document).height() 原生js写法: window.pageYOffset + windo 阅读全文
posted @ 2017-04-11 17:25 vsmart 阅读(221) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>canvas</title> <style> body{background: #000;} #c1{background: #fff;} </style> < 阅读全文
posted @ 2017-04-11 11:14 vsmart 阅读(204) 评论(0) 推荐(0) 编辑