摘要: # eslint不检测指定文件或文件夹在项目根目录新建`.eslintignore`文件,将不想应用eslint规则的文件或文件夹加在里面,规则和`.gitignore`类似,比如项目中有iconfont.js不想应用eslint,我可以这么写:> **/iconfont.js[参考eslint官网](http://eslint.cn/docs/user-guide/configuring#ign... 阅读全文
posted @ 2019-03-13 15:38 cococe 阅读(6684) 评论(0) 推荐(0) 编辑
摘要: ```javascriptdocument.addEventListener('click', function bindCopy(e) { dom = document.createElement('textarea'); // Prevent zooming on iOS dom.style.fontSize = '12pt'; // Reset box model ... 阅读全文
posted @ 2019-03-12 11:22 cococe 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 实现移动端刮刮卡 阅读全文
posted @ 2019-03-12 11:13 cococe 阅读(572) 评论(0) 推荐(0) 编辑
摘要: ADB,即 [Android Debug Bridge](https://developer.android.com/studio/command-line/adb.html),它是 Android 开发/测试人员不可替代的强大工具,也是 Android 设备玩家的好玩具。 阅读全文
posted @ 2019-03-08 14:17 cococe 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1.让文字不可选中 2.safari点击区域阴影去除 3.css3新增蒙层 4.ios手机实现惯性滚动 5.手机实现隐藏滚动条 safari上不生效,可采用以下的方式,给父元素加一下css属性 safari input textarea阴影去除 改变input,textarea光标颜色 显示固定行数 阅读全文
posted @ 2019-01-23 14:44 cococe 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 手机网页花屏 阅读全文
posted @ 2019-01-04 19:40 cococe 阅读(195) 评论(0) 推荐(0) 编辑
摘要: git忽略本地文件,可以用.gitignore,但是不能忽略自身.gitignore。如果只是想本地使用,不想推到远程服务器上,此时可以尝试.git/info/exclude文件,用法与.gitignore类似。 阅读全文
posted @ 2018-10-31 14:29 cococe 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 由于页面中已经有title描述,产品需要title为空,直接将title置空,ios是正常,但是有些安卓手机会直接显示当前网页url 解决方案: 将title的值设置为看不见的 "零宽字符" 把上面的title标签完整的复制到你的网页中,查看效果。 拓展: 将以下一段文字,复制到chro 阅读全文
posted @ 2018-10-30 14:40 cococe 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 比较长的单词换行用属性 兼容性: "https://caniuse.com/ search=hyphens" 两个注意要点: 1.html的lang="en US" 2.需要设置css的word break:break all; 阅读全文
posted @ 2018-10-09 21:14 cococe 阅读(2410) 评论(0) 推荐(0) 编辑
摘要: 1.截取整个网页 1.1 打开chrome的开发者工具 +`command i`(mac) +`Shift I` (Windows) 1.2 然后按住快捷键 +`shift p`(mac) +`shift p`(windows) 1.3 输入 回车 1.4 保存到指定位置就可 2.截取部分网页 需求 阅读全文
posted @ 2018-09-29 10:41 cococe 阅读(2931) 评论(0) 推荐(0) 编辑