2020年3月11日
摘要: 获取时间戳 时间格式为:2017-12-12 12:00:00在苹果上获取时间戳有兼容性问题 需要转换成2017/12/12 12:00:00 才可以正确获取到时间戳 var getTime=function(time){ var myDate = new Date(time); var u = n 阅读全文
posted @ 2020-03-11 11:58 猪mother 阅读(377) 评论(0) 推荐(0) 编辑
摘要: ios系统内部的bug 某些app或者微信网页里,复制手机收到的短信验证码,会触发UITextFieldTextDidChangeNotification监听事件,导致验证码出现了两次,这个应该是ios系统内部的bug. 解决方案 如果input框的type=“text” 或者 type=“pass 阅读全文
posted @ 2020-03-11 11:55 猪mother 阅读(4501) 评论(0) 推荐(0) 编辑
摘要: 背景:移动端H5页面,视口设置<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /> qq、浏览器打开页面字体大小正常 问题:微信打开页面 阅读全文
posted @ 2020-03-11 11:53 猪mother 阅读(2057) 评论(0) 推荐(0) 编辑
摘要: 一个移动端页面,console页面一直报这个错误,一开始很懵逼。没有任何框架只是jquery搭的页面。 发现是页面插入了一段富文本中的<Strong>标签捣鬼,这个会引起Uncaught TypeError: widgetDom.webkitCreateShadowRoot is not a fun 阅读全文
posted @ 2020-03-11 11:44 猪mother 阅读(802) 评论(0) 推荐(0) 编辑