摘要: https://www.npmjs.com/package/react-canvas-poster 阅读全文
posted @ 2022-12-26 14:19 玖捌 阅读(26) 评论(0) 推荐(0)
摘要: window.open( 'https://design.stage.ikongjian.com/bim/toUpdateChange?changeNo=BG20221209393309&boss=true&changeType=null&changerType=1&openType=2', '_b 阅读全文
posted @ 2022-12-09 15:35 玖捌 阅读(25) 评论(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 @ 2022-12-06 17:17 玖捌 阅读(48) 评论(0) 推荐(0)
摘要: removeHtmlStyle(html){ let rel = /style\s*?=\s*?([‘"])[\s\S]*?\1/g; let newHtml = ""; if (html) { newHtml = html.replace(rel, ""); } // 清除类名 // let re 阅读全文
posted @ 2022-10-24 14:40 玖捌 阅读(72) 评论(0) 推荐(0)
摘要: 前端工程化之 commitlint + husky 实现 git 提交规范化  编写规范提示 安装 husky 和 lint-staged husky 可以用于实现各种 git Hook。这里主要用到 pre-commit 这个 hook,在执行 commit 之前,运行一些自定义操作 lint-staged 用于对 git 暂存区中的文件执行代码检测 npm i husky lint-st 阅读全文
posted @ 2022-10-17 10:37 玖捌 阅读(545) 评论(0) 推荐(0)
摘要: var userAgent = navigator.userAgent;var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;console.log(userAgent)if(isIE){a 阅读全文
posted @ 2022-10-09 14:11 玖捌 阅读(16) 评论(0) 推荐(0)
摘要: 如果是html写的代码就要引入<script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>然后在<script>//初始化一下就可以了,let vConsole = new VConsole();//你打 阅读全文
posted @ 2022-09-27 17:43 玖捌 阅读(249) 评论(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 @ 2022-09-22 15:37 玖捌 阅读(172) 评论(0) 推荐(0)
摘要: <input type="file" accept="image/*" mutiple="mutiple" capture="camera" /> 三个属性: accept - 规定可提交的文件类型。 capture - 系统所捕获的默认设备。camera(照相机),camcorder(摄像机),m 阅读全文
posted @ 2022-09-19 10:36 玖捌 阅读(327) 评论(0) 推荐(0)
摘要: replace(/(\n|\r|\r\n|↵)/g, '<br/>') 转码 encodeURIComponent('xx') 转码一部分 encodeURI('xx') 转码整个URI 解码 decodeURIComponent('xx') 解码一部分 decodeURI('xx') 解码整个UR 阅读全文
posted @ 2022-08-23 16:01 玖捌 阅读(41) 评论(0) 推荐(0)