2021年8月4日

摘要: 一开始我是这样打印的: console.dir("验证失效",error); chrome控制台报错并打印出来了"验证失效",但是没有打印error; 找了半天为什么没有打印出error,没找到 后来将代码改成 console.dir(error); 成功打印: 阅读全文
posted @ 2021-08-04 11:12 在自由自 阅读(252) 评论(0) 推荐(0)

2021年7月1日

摘要: 话不多说,直接上代码 //拿到当前时间 function getLocalTime() { var now = new Date(); var year= now.getFullYear(); var month=now.getMonth()+1; var date=now.getDate(); v 阅读全文
posted @ 2021-07-01 15:41 在自由自 阅读(917) 评论(0) 推荐(0)

2021年6月30日

摘要: 问题描述: 使用fixed定位的弹窗,在ios12的系统里,软键盘调起后,页面整体上移,当软键盘消失时,视觉上页面已经回到原始位置,但其实弹窗的焦点位置仍在软键盘调起时的位置。 解决办法: document.body.addEventListener('focusin', () => { // 软键 阅读全文
posted @ 2021-06-30 15:02 在自由自 阅读(225) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-06-30 14:51 在自由自 阅读(157) 评论(0) 推荐(0)

2020年12月30日

摘要: 1.使用快捷键Win+R打开cmd, 2.命令行输入命令:ipconfig 找到自己电脑的IP 3.将本地起服务后的网址http://local.fengcx.com:3002/compare/194.shtml?type=1的前面部分(端口号前面的)local.fengcx.com换为自己电脑的I 阅读全文
posted @ 2020-12-30 20:03 在自由自 阅读(430) 评论(1) 推荐(0)