- 博客(8)
- 收藏
- 关注
原创 移动端获取当前屏幕高度和滚动加可视区域代码
let scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop);let curH = window.innerHeight + scrollTop;let docH = Math.max(document.documentElement.clientHeight, document.bo...
2018-06-28 17:20:46 11314
原创 fecs使用问题
如何豁免整个文件夹使用配置文件.fecsrc文件,只检查需要检查的文件{ "files": ["glob1", "glob2"], "eslint": {}, "csshint": {}, "htmlcs": {}, "jfo
2018-06-28 10:55:49 998
原创 webpack打包报错ERROR in js/app.5997574802e535cd2cca.js from UglifyJs Unexpected token: punc (() [js/app.
报错信息ERROR in js/app.5997574802e535cd2cca.js from UglifyJsUnexpected token: punc (() [js/app.5997574802e535cd2cca.js:45,8]Build failed with errors.解决方案增加.babelrc文件{ "presets": [ ...
2018-06-27 21:22:15 1957
原创 vscode编辑器配置
https://stackoverflow.com/questions/43346260/running-the-contributed-commandextension-openwithdefault-failedYou can install “Open in Browser” and press "Ctrl+B".
2018-06-24 20:54:00 2284
原创 安卓h5页面webview闪屏问题
原来使用的是渐变覆盖,导致开始的bgcolor是白色,会有一个渐变的过程,把bgcolor也设置成你要的颜色就可以了
2018-06-23 10:28:41 4194 3
原创 React Native Android无法拦截h5中的URL跳转问题
使用js注入的方式,将a标签的跳转拦截掉var aNodes = document.getElementsByTagName('a');for (var i = 0; i < aNodes.length; i++) { aNodes[i].addEventListener('click', function (e) { e.preventDefault();...
2018-06-22 12:03:02 1823
原创 python运行程序出现RSA失败
报错信息Traceback (most recent call last):File "ring.py", line 1, in &lt;module&gt;import os, hashlib, random, crypto.PublicKey.RSAImportError: No module named crypto.PublicKey.RSA解决方案https:...
2018-06-22 12:00:07 7118
原创 换电脑引发的webpack问题
报错信息error: chunk.entry points: use chunks.groupsiterable and filter by instanceoTypeError: Cannot read property 'presetToOptions' of undefined in webpack-cli with ReactJsError: webpack.optimize....
2018-06-14 11:38:55 1105
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人