07 2021 档案

摘要:1、 webpack: optimization: { minimize: false, // 可以先测试为false,不压缩,打包之后看源码,是否有优化空间,正式生产环境需要压缩的设置为true1 usedExports: true, // 先设置为true,未使用的代码不应该打包,只有使用到的才 阅读全文
posted @ 2021-07-29 20:57 Running00 阅读(34) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u012961419/article/details/107093974/ https://segmentfault.com/a/1190000022194321 https://www.jianshu.com/p/bdf1f026af09 https:/ 阅读全文
posted @ 2021-07-29 14:41 Running00 阅读(12) 评论(0) 推荐(0) 编辑
摘要:"sideEffects": false // 在package.json 中配置 https://blog.csdn.net/gosenkle/article/details/90598950 阅读全文
posted @ 2021-07-29 14:00 Running00 阅读(97) 评论(0) 推荐(0) 编辑
摘要:1、x-forwarded-for 针对这个,去了解了下,总结下其他人的经验: 当你使用了代理时,web服务器就不知道你的真实IP了,为了避免这个情况,代理服务器通常会增加一个叫做x_forwarded_for的头信息,把连接它的客户端IP(即你的上网机器IP)加到这个头信息里,这样就能保证网站的w 阅读全文
posted @ 2021-07-27 15:23 Running00 阅读(3599) 评论(0) 推荐(0) 编辑
摘要:1、在浏览器中输入url会经历域名解析、建立TCP连接、发送http请求、资源解析等步骤。 压缩html 压缩css 压缩js 阅读全文
posted @ 2021-07-22 17:23 Running00 阅读(31) 评论(0) 推荐(0) 编辑
摘要:- 阅读全文
posted @ 2021-07-20 17:50 Running00 阅读(28) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/946f475a9075 阅读全文
posted @ 2021-07-20 10:49 Running00 阅读(8) 评论(0) 推荐(0) 编辑
摘要:css disk cache 磁盘缓存 js memory cache 内存缓存 浏览器对于缓存什么策略或者机制? 阅读全文
posted @ 2021-07-19 14:44 Running00 阅读(22) 评论(0) 推荐(0) 编辑
摘要:https://baike.baidu.com/item/TTFB/5588034 阅读全文
posted @ 2021-07-19 11:13 Running00 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/victory0943/article/details/106332095/?utm_term=charlesmac%E8%AF%81%E4%B9%A6%E5%AE%89%E8%A3%85&utm_medium=distribute.pc_aggpage_ 阅读全文
posted @ 2021-07-14 11:07 Running00 阅读(8) 评论(0) 推荐(0) 编辑
摘要:classProperties static propTypes = { Babel是什么 Babel是将ES6及以上版本的代码转换为ES5的工具。 它用 babel.config.js 或 .babelrc 文件作为配置文件,其中最为重要的配置参数是presets和plugins。 plugins 阅读全文
posted @ 2021-07-13 16:53 Running00 阅读(87) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/58802767/no-proceed-anyway-option-on-neterr-cert-invalid-in-chrome-on-macos 阅读全文
posted @ 2021-07-13 10:34 Running00 阅读(20) 评论(0) 推荐(0) 编辑
摘要:先精确查找,在模糊查找 /** * @param {array} data data参数说明 * @param {object} a 参数说明 * @return {object} 返回值说明 */ 阅读全文
posted @ 2021-07-09 11:29 Running00 阅读(224) 评论(0) 推荐(0) 编辑
摘要:[{valid: 1}].reduce((total, v) => { // 第一个参数总计,第二个参数,每一项 return total + v.valid; }, 0) 阅读全文
posted @ 2021-07-08 16:15 Running00 阅读(114) 评论(0) 推荐(0) 编辑
摘要:两个相近的url,长的写在端的前面 阅读全文
posted @ 2021-07-07 13:34 Running00 阅读(16) 评论(0) 推荐(0) 编辑
摘要:amd:打包的js不能直接在浏览器中使用, commonjs:打包的js不能直接在浏览器中使用, es:打包的js不能直接在浏览器中使用, iife:打包的js,可以直接在浏览器中使用 umd: 可以直接在浏览中使用 amd 模块使用: commonjs模块使用 1 Browserify 是目前最常 阅读全文
posted @ 2021-07-02 19:41 Running00 阅读(55) 评论(0) 推荐(0) 编辑
摘要:合并多个js文件 代码压缩 去空格、换行 压缩变量名 剔除注释 代码加密: 代码混淆: https://blog.csdn.net/qq_21531681/article/details/108437907 https://cloud.tencent.com/developer/article/14 阅读全文
posted @ 2021-07-02 14:06 Running00 阅读(711) 评论(0) 推荐(0) 编辑
摘要:cjs // commonjs 同步 Node 应用由模块组成,采用 CommonJS 模块规范。 commonjs 每个文件就是一个模块,有自己的作用域。在一个文件里面定义的变量、函数、类,都是私有的,对其他文件不可见。 CommonJS规范加载模块是同步的,也就是说,只有加载完成,才能执行后面的 阅读全文
posted @ 2021-07-01 19:41 Running00 阅读(113) 评论(0) 推荐(0) 编辑
摘要:区别 https://segmentfault.com/a/1190000012419990 阅读全文
posted @ 2021-07-01 16:28 Running00 阅读(20) 评论(0) 推荐(0) 编辑
摘要:https://florian.ec/blog/react-file-upload-jest/ 阅读全文
posted @ 2021-07-01 16:11 Running00 阅读(38) 评论(0) 推荐(0) 编辑
摘要:(我们用的是 --save-dev 而不是 --save,因为代码实际执行时不依赖这个插件——只是在打包时使用。) 阅读全文
posted @ 2021-07-01 13:53 Running00 阅读(30) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示