摘要: 1、flex布局(2种) .out { background: pink; width: 300px; height: 300px; display: flex; align-items: center; } .inner { background: blue; width: 100px; } #b 阅读全文
posted @ 2020-07-09 15:55 CatherLee 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: 面试中几乎每次都会问到一个js中关于call、apply、bind的问题,比如… 怎么利用call、apply来求一个数组中最大或者最小值 如何利用call、apply来做继承 apply、call、bind的区别和主要应用场景 首先,要明白这三个函数的存在意义👉 改变函数执行时的上下文,也就是改 阅读全文
posted @ 2020-07-09 15:34 CatherLee 阅读(508) 评论(0) 推荐(0) 编辑