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