一枚前端开发,也了解点后端,喜欢 TypeScript, 工程化, 可视化, 代码规范, DevOps。
- 🌄 svg2font:一个将 SVG icon 转换为 font icons 实用小工具
- 🧰 wxmp-starter:基于 gulp 搭建,满足小程序基本开发所有需求脚手架
- 🛠 node-jsonpify:一个将请求转换为 jsonp 小工具
- ⭐️ 5stars:一个基于 SVG 技术快速生成 5星好评 的实用工具
- 📱 vwrem:一个基于 vw + rem 适配布局的解决方案
基于@media特性实现对原生orientationchange的修复 ( orientationchange-fix is a based on @media attribute to fix orientationchange utility library, orientaionchange polyfill.)
一枚前端开发,也了解点后端,喜欢 TypeScript, 工程化, 可视化, 代码规范, DevOps。
添加了你的fix代码之后,发现屏幕旋转时候获得的可用高度值经常不一样(多测几次就会发现)。
`<!doctype html>
目前我的解决办法是使用原生的orientationchange事件,然后延迟300毫秒执行事件处理函数。
`<!doctype html>
https://github.com/zhansingsong/orientationchange-fix/blob/master/src/orientationchange-fix.js#L84
这一行是不是加个空格比较好?
html.className = 'orientation ' + html.className;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.