Debugg
Debugg
俊小赞
自律使我自由。
展开
-
[iPhone] input表单输入过程中,页面会自动放大
问题当在 iphone 运行带有 input输入框的页面,并尝试输入内容时,页面会自动放大。解决meta 方式<meta name="apple-mobile-web-app-capable" content="yes" /><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /&g原创 2022-01-10 10:04:54 · 1643 阅读 · 1 评论 -
[Google Chrome] ERR_NAME_NOT_RESOLVED
报错[Google Chrome] ERR_NAME_NOT_RESOLVED在使用谷歌浏览器进行网页访问时,控制台一直提示外部资源请求失败。解决前往 cmd命令提示符(管理员),续订 dns。$ ipconfig /flushdn传送门:如何修复ERR_NAME_NOT_RESOLVED错误?...原创 2021-12-07 09:38:57 · 1776 阅读 · 0 评论 -
[Intervention] Unable to preventDefault inside passive event listener due to target being treated
报错[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.大意:[干预] 由于目标被视为被动,无法防止被动事件侦听器内部的默认设置。解决绑定 touch 触控事件的时候,添加第三个参数 passive/。document.addEventListener( 'touchmove', function (e) { e.原创 2021-09-09 15:33:22 · 1154 阅读 · 0 评论 -
fatal: unable to access ‘https://github.com/JhouXu/guiyi.git/‘: Failed to connect to github.com port
问题描述:今天想将本地文件push到github的仓库时,频繁报错,错误提示如下: fatal: unable to access 'https://github.com/JhouXu/guiyi.git/': Failed to connect to github.com port 443: Timed out原因分析:翻译之后大意是:无法连接到github.com端口443:超时。在刚开始的时候需要github的用户名及密码,但是没有登录成功,导致没有push的权限。解决方案:原创 2021-03-10 17:49:21 · 1965 阅读 · 1 评论 -
audio自动播放产生的困扰解决方案
项目场景:在开发 h5 的过程中难免需要实现页面加载完成之后,音乐会自动播放的功能模块。比如这样:问题描述:可是,在 ios中在页面加载完成之后autio控件是不会自动播放的。 解决方案:1. 检测页面是否加载完成,然后播放。2. 检测微信中的页面加载,然后播放。// DOMContentLoaded 检测页面是否加载完成document.addEventListener('DOMContentLoaded', function () { // 获取audio控件,然后原创 2021-02-20 18:32:43 · 4620 阅读 · 0 评论 -
关于 scroll-view 标签的坑
项目场景:在开发当中,需要设置某个盒子包含滚动条,是经常需要实现的,css 中可以通过 overflow 进行实现,然而在微信小程序当中的 scroll-view 标签就包含着这种功能。问题一描述:当需要横向滑动时,按照以下设置,多余的 text标签 是会换行的。```html {{item}} ``` 原因一分析:因为浏览器的排版模式影响。解决一方案:为 scroll-view标签,设置强制不换行属性,即可。```csswhite-space: no原创 2021-02-02 18:52:15 · 820 阅读 · 0 评论 -
remote: Support for password authentication was removed on August 13, 2021.(SSH令牌解决法)
remote: Support for password authentication was removed on August 13, 2021.(SSH令牌解决法)原创 2021-08-17 23:08:44 · 3180 阅读 · 0 评论 -
warning: adding embedded git repository: NeteaseCloudMusicApi
warning: adding embedded git repository: NeteaseCloudMusicApi原创 2021-08-17 22:17:16 · 7139 阅读 · 1 评论