摘要:
1、箭头函数 eg: (a, b) => a * b 等价于 function (a, b) { return a * b } 具体箭头函数讲解, 请看:http://www.javascriptkit.com/javatutors/javascriptarrowfunctions.shtml 2、 阅读全文
摘要:
神奇的 ~ 选择符 对于当前 hover 的 li ,其对应伪元素的下划线的定位是 left: 100%,而对于 li:hover ~ li::before,它们的定位是 left: 0。 ul li { float: left; width: 20%; height: 60px; line-hei 阅读全文