摘要: 文件目录: assets scripts styles html dev scss js 阅读全文
posted @ 2017-05-17 16:33 Stefan-47 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 例如:桌面上新建个文件夹es6,文件夹里新建一个文件es6.js。 打开小黑窗进入文件夹。(windows要以管理员的方式打开cmd) 1、先全局安装babel-cli,输入命令 sudo npm install babel-cli -g (windows去掉sudo) 2、输入cd Desktop 阅读全文
posted @ 2016-09-26 13:23 Stefan-47 阅读(1669) 评论(0) 推荐(1) 编辑
摘要: $(".tab-title li").on('click', function(){ $(".tab-title li").eq($(this).index()).addClass("cur").siblings().removeClass('cur'); $(".tab-con>div").hid 阅读全文
posted @ 2016-07-20 11:18 Stefan-47 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、过渡 .transition(@prop: background, @time: .3s, @ease: ease) {-webkit-transition: @prop @time @ease;-moz-transition: @prop @time @ease;-ms-transition: 阅读全文
posted @ 2016-07-15 10:55 Stefan-47 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 事件委托:利用事件冒泡的原理,把事件添加到父级或祖先元素上,来触发执行效果. 好处: 1.提高性能. 2.未来添加进来的元素,身上依然能触发事件. 阅读全文
posted @ 2016-06-28 22:09 Stefan-47 阅读(118) 评论(0) 推荐(0) 编辑