摘要: xpage { width: 100%; height: 100%; } page > view { position: initial !important; } view, picker, textarea, button, navigator { word-break: break-word; 阅读全文
posted @ 2021-07-19 14:31 echolife 阅读(64) 评论(0) 推荐(0) 编辑
摘要: Polyfill是什么 Polyfill 是一块代码(通常是 Web 上的 JavaScript),用来为旧浏览器比如IE提供它没有原生支持的较新的功能。 常见的axios和ES6的一些常用的语法糖都不支持,比如在IE浏览器中会出现“promise未定义“的问题 比如说 polyfill 可以让 I 阅读全文
posted @ 2021-07-14 16:17 echolife 阅读(276) 评论(0) 推荐(0) 编辑
摘要: function dedupe(array) { return Array.from(new Set(array)); } dedupe([1, 1, 2, 3]) // [1, 2, 3] 阅读全文
posted @ 2021-07-14 16:03 echolife 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 中文字体一般占据内存都很大。 如果在已知文字范围的时候,需要使用非系统字体, 可对字体进行编辑后引入,以加快加载速度。 推荐使用: Fontmin 软件 http://ecomfe.github.io/fontmin/ 阅读全文
posted @ 2021-01-05 18:35 echolife 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 官网 http://www.clipboardjs.cn/ 引入 <script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js"></script> 使用方式 例如: 从属性复制文本 <button c 阅读全文
posted @ 2020-09-21 14:53 echolife 阅读(342) 评论(0) 推荐(0) 编辑
摘要: //弹窗提示 window.alerts = alerts = (function () { var _alrElem = document.createElement("div"); _alrElem.className = "error_page"; var textElem = documen 阅读全文
posted @ 2020-07-13 17:34 echolife 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: //这个可以关闭安卓系统的手机 document.addEventListener('WeixinJSBridgeReady', function(){ WeixinJSBridge.call('closeWindow'); }, false); //这个可以关闭ios系统的手机 WeixinJSB 阅读全文
posted @ 2020-07-09 16:07 echolife 阅读(403) 评论(0) 推荐(0) 编辑
摘要: HTML 后代:> 缩写:nav>ul>li 兄弟:+ 缩写:div+p+bq 上级节点:^ 缩写:div>ul>li^div <div> <ul> <li></li> </ul> <div></div> </div> 乘法:* 缩写:ul>li*5 自增符号:$ ul>li.item$*5 从 1 阅读全文
posted @ 2020-04-21 18:21 echolife 阅读(151) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> </head> <head> <script> function setCookie(cname,cvalue,exdays){ 阅读全文
posted @ 2020-04-15 16:44 echolife 阅读(149) 评论(0) 推荐(0) 编辑
摘要: select{ -webkit-user-select:none; -moz-user-select: none; user-select: none; border: 0 none; border-radius: 0; outline: none; background: none; appear 阅读全文
posted @ 2020-04-15 16:43 echolife 阅读(575) 评论(0) 推荐(0) 编辑