摘要: WCAG What is WCAG? "Web Content Accessibility Guidelines (WCAG) Overview" Checklist and solve technology Documents "How to Meet WCAG 2" "WCAG 2.0 chec 阅读全文
posted @ 2019-11-19 10:15 Amy_Li 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1. 页面被iframe问题解决方法 if (window.top.location !== window.self.location) { const data = JSON.stringify({ iframedRedirectSuccess: true }); window.top.locat 阅读全文
posted @ 2019-08-30 17:01 Amy_Li 阅读(2041) 评论(0) 推荐(0) 编辑
摘要: // no redirect <!DOCTYPE html 页面form提交不刷新 submit </form 解决被iframe时submit请求是iframe提交不是form提交问题 setTimeout(() = { this.initForm.submit(); }, 10); 无刷新更换浏 阅读全文
posted @ 2019-08-07 14:48 Amy_Li 阅读(3056) 评论(0) 推荐(0) 编辑
摘要: Sonar Config 1. .Jenkinsfile config stage('SonarQube analysis') { steps { script { scannerHome = tool 'SonarScanner4'; } withSonarQubeEnv('SonarQube') 阅读全文
posted @ 2019-07-23 14:51 Amy_Li 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 在desktop显示正常,但是在移动端显示变为小圆圈,无法正确展示选中取消选中效果问题解决方案: display: block; width: 58px; height: 20px; webkit appearance: checkbox; moz appearance: checkbox; 阅读全文
posted @ 2019-07-16 10:41 Amy_Li 阅读(687) 评论(0) 推荐(0) 编辑
摘要: 1.当前页面 var bodyHtml = window.document.body.innerHTML; window.document.body.innerHTML = printHtml;//printHtml为当前需要打印的div的内容 window.print(); window.docu 阅读全文
posted @ 2019-07-16 10:35 Amy_Li 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: export const appendScriptReady = (url, onReadyCallback) => { const targetScript = document.createElement('script') targetScript.type = 'text/javascript' if (targetScript.readyState) { // IE 6,7... 阅读全文
posted @ 2018-08-08 15:28 Amy_Li 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 说明:例如将代码提交到git仓库,将一些敏感信息提交,所以需要删除提交记录以彻底清除提交信息,以得到一个干净的仓库且代码不变 1.Checkout git checkout orphan latest_branch 2. Add all the files git add A 3. Commit t 阅读全文
posted @ 2018-06-08 12:37 Amy_Li 阅读(23700) 评论(2) 推荐(0) 编辑
摘要: 方案一: 缺点,光标不能定位 方案二: 缺点(某些浏览器不工作,部分浏览器删除时光标跳动,如支付宝默认浏览器) 方案三,比较完美的解决方案,支持各种终端浏览器输入, 任意位置删除输入且光标不会跳动。 方案三(优化方案, 不支持低版本ie, 支持低版本ie见方案三) 阅读全文
posted @ 2017-12-12 23:12 Amy_Li 阅读(3228) 评论(0) 推荐(0) 编辑
摘要: promise 详解 https://www.cnblogs.com/lvdabao/p/es6-promise-1.html feth 应用 https://github.com/github/fetch 各种浏览器兼容性对比: https://www.andrewhfarmer.com/ajax 阅读全文
posted @ 2017-11-28 10:09 Amy_Li 阅读(202) 评论(0) 推荐(0) 编辑