Prophet
Prophet
关于WebStorm 占内存的问题,也是有解决方案的。在不需要索引的文件夹上,右键 Mark directory as 选择Exclude,就不会对该文件夹进行索引。 自己测试,只要取消不必要的文件夹索引,比如node_modules,bower_components 这些,真的可以减少很多内存的占用,我使用的情况基本都是2g左右内存的占用(虽然不能和vscode比)。 VSCode 轻量级确实让人垂涎,但是js没有跳转,还怎么用。
## Method 1 WEBPACK5 Just DELETE exportsFields in cesium/package.json webpack5's subModule enhanced-resolve will follow the rules which cesium set in package.json => exportsFields. And it failed in enhanced-resolve/lib/ExportsFieldPlugin.js in Webpack4...
利用 indexOf 不需要遍历数组 function moveZero(arr){ let zeroCount=0; let findIndex=0; var index; while(index=arr.indexOf(0, findIndex), index!==-1){ arr.splice(index, 1); zeroCount++; } let zeroArr = Array.from({length:zeroCount}).fill(0); return arr.concat(zeroArr); } let arr=[0,1,0,3,12]; moveZero(arr)
## 从汇编执行的指令周期角度考虑 >假设一次 for 循环指令数 1.自增 2.比较 3.跳转 实际对应不同的cpu周期,简化下,一次for循环就算3个指令周期吧 越往外层执行的指令就越多 > 那 i=1 j=10 k=100 * 最里层需要执行的指令周期 1x10x100x3 * 中间层 1x10x3 * 最外层 1x3 > 粗略合计 3033次指令执行 > 那 i=100...
**same error 400 in version 1.19.9** **and works in version 1.16.1** ### version ```bash nginx -V nginx version: nginx/1.19.9 built by gcc 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) built with OpenSSL 1.1.1f 31...
发了一个 pull request 提供了 参数配置是否总是显示 滚动条 https://github.com/react-component/virtual-list/pull/158
> ctrl+d half page scroll > vscode scrollPageDown hole page scroll > How about use vscode scrollPageDown to handle ctrl+d ```json { "vim.normalModeKeyBindingsNonRecursive": [ { "before": [ "" ], "commands":...
@uloco You're right! So at last i do some tricks like this ```json { "before": [ "" ], "after": [ "1", "5", "g", "j", "z", "z", ] }, { "before":...
在没有修复之前如果时间紧迫可以使用小程序官方提供的的picker组件来实现选择器的功能 https://developers.weixin.qq.com/miniprogram/dev/component/picker.html
Just use the webpack development to build your code and easy to debug ```js mode: isProd ? "development" : "development", optimization: { minimize: false, // moduleIds: "size", // usedExports: true,...