摘要: sass --watch style.scss 阅读全文
posted @ 2015-07-05 20:10 bjsunhe 阅读(237) 评论(0) 推荐(0) 编辑
摘要: //引入require.js//main.js定义别名requirejs.config({ paths:{ jquery:'jquery-1.11.1.min' }})//main.js 引入模块requirejs(['jquery','validate'],function($,val... 阅读全文
posted @ 2015-07-05 20:00 bjsunhe 阅读(190) 评论(0) 推荐(0) 编辑
摘要: var Timeline=function(){this.order=[];this.add=function(timeout,func,log){ this.order.push({ timeout:timeout, func:func, log:log ... 阅读全文
posted @ 2015-07-05 13:58 bjsunhe 阅读(338) 评论(0) 推荐(0) 编辑
摘要: @-webkit-keyframes rock{0%{transform:rotate(0deg);}10%{transform:rotate(3deg);}20%{transform:rotate(-3deg);}30%{transform:rotate(2deg);}40%{transform:... 阅读全文
posted @ 2015-07-05 13:40 bjsunhe 阅读(129) 评论(0) 推荐(0) 编辑
摘要: //获取网页宽高var sHeight=document.documentElement.scrollHeight;var sWidth=document.documentElement.scrollWidth;//获取可视区域宽高var wHeight=document.documentEleme... 阅读全文
posted @ 2015-07-05 11:51 bjsunhe 阅读(203) 评论(0) 推荐(0) 编辑