![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
app
西有余年
这个作者很懒,什么都没留下…
展开
-
vue手机端开发聚焦不灵敏
vue手机端开发聚焦不灵敏 前置: 手机端开发时有时使用UI框架中的输入框或者文本域在点击的时候聚焦不是很快速。因为一是有的控件带有动画过度效果,二是移动设备的屏幕点击事件大多会延迟300ms左右才会触发(所有版本的Android Chrome浏览器,如果设置viewport meta的值有user-scalable=no,浏览器也是会马上触发点击事件没有延迟),这是因为为了检查用户是否在做双击。 解决: 当然更优更好的解决方案有很多,此处记录的只是我自己解决此问题的一种方法。使用fastclic.原创 2020-09-03 17:06:12 · 244 阅读 · 0 评论 -
vue开发app使用cordova打包,个别页面需要强制横屏
项目背景:使用vue开发app,在个别页面需要横屏显示。 为满足以上需求在使用cordova打包时,使用cordova插件来实现 1.在cordova项目中安装cordova插件: cordova plugin add cordova-plugin-screen-orientation 插件文档说明直通车:https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-screen-orientation/#usage 2.在原创 2020-07-23 11:38:34 · 777 阅读 · 0 评论