2019年9月6日

es6: promise 对象 和 then() 的用法

摘要: <script> const request = function(){ var _this = this; let num = Math.round(Math.random()*100)/100; console.log( num ); return new Promise( (resolve, 阅读全文

posted @ 2019-09-06 16:50 liuhao1992 阅读(1170) 评论(0) 推荐(0) 编辑

2019年9月5日

关于前端适配问题

摘要: rem 适配方案 在 vw 方案出来之前,最被大众接受的就是使用 rem 进行适配的方案,因为 rem 满足上面说的,可以是一个全局性的基准单位。 rem(font size of the root element),在 CSS Values and Units Module Level 3中的定义 阅读全文

posted @ 2019-09-05 17:22 liuhao1992 阅读(554) 评论(0) 推荐(0) 编辑

导航