2020年4月30日

2019面试题1

摘要: 1.原型和原型链2.继承3.闭包4.Promise的用法,promise.all的使用5. vue异步获取到数据,到渲染,这个过程的原理6. 把一个url转换成一个对象7. 如何判断一个数组,is array 、 instanceof constructor8. 谷歌浏览器F12在Source中如何 阅读全文

posted @ 2020-04-30 11:27 秃了头也不退休 阅读(121) 评论(0) 推荐(0)

js-Array.from()

摘要: 例子1——将类数组转换为数组 let array = { 0: 'name', 1: 'age', 2: 'sex', 3: ['user1','user2','user3'], 'length': 4 } let arr = Array.from(array ) console.log(arr) 阅读全文

posted @ 2020-04-30 11:25 秃了头也不退休 阅读(4611) 评论(0) 推荐(0)

js的15种循环

摘要: http://www.360doc.com/content/19/0709/09/43615570_847586162.shtml 阅读全文

posted @ 2020-04-30 10:35 秃了头也不退休 阅读(145) 评论(0) 推荐(0)

css-postition:sticky

摘要: sticky 的本意是粘糊糊的,但在 css 中的表现更像是吸附。常见的吸顶、吸底(移动端网站的头部返回栏,底部切换栏之类)的效果用这个属性非常适合。 .sticky { position: sticky; position: -webkit-sticky; top: 0; } 特性(坑): 1.s 阅读全文

posted @ 2020-04-30 10:24 秃了头也不退休 阅读(950) 评论(0) 推荐(0)

导航