Sniperyan的个人博客

Full Stack攻城狮


  • Home

  • About

  • Tags

  • Archives

React开发总结(1):使用高阶组件

Posted on 2016-08-12 | Edited on 2019-02-02 | In js , React

什么是mixins在 React component 构建过程中,常常有这样的场景,有一类功能要被不同的 Component 公用,然后看得到文档经常提到 Mixin(混入)这个术语。Mixin 的特性一直广泛存在于各种面向对象语言。尤其在脚本语言中大都有原生支持,比如 Perl、Ruby、Pyth ...

Read more »

移动端适配总结

Posted on 2016-03-05 | Edited on 2019-02-02 | In js , CSS

首先要搞清楚几个概念 物理像素(physical pixel):手机屏幕最小的物理显示单元,即分辨率750×1334,横向750个,纵向1334个 设备独立像素–CSS像素 ,一个CSS像素占用一个物理像素,dpr=1,一个CSS像素占用2个物理像素,dpr=2 dpr:设备像素比(devic ...

Read more »
12
Sniperyan

Sniperyan

叫我起床的是梦想

12 posts
7 categories
3 tags
© 2019 Sniperyan
Powered by Hexo v3.8.0
|
Theme – NexT.Pisces v7.0.0