上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 90 下一页
摘要: amd:打包的js不能直接在浏览器中使用, commonjs:打包的js不能直接在浏览器中使用, es:打包的js不能直接在浏览器中使用, iife:打包的js,可以直接在浏览器中使用 umd: 可以直接在浏览中使用 amd 模块使用: commonjs模块使用 1 Browserify 是目前最常 阅读全文
posted @ 2021-07-02 19:41 Running00 阅读(50) 评论(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 阅读(687) 评论(0) 推荐(0) 编辑
摘要: cjs // commonjs 同步 Node 应用由模块组成,采用 CommonJS 模块规范。 commonjs 每个文件就是一个模块,有自己的作用域。在一个文件里面定义的变量、函数、类,都是私有的,对其他文件不可见。 CommonJS规范加载模块是同步的,也就是说,只有加载完成,才能执行后面的 阅读全文
posted @ 2021-07-01 19:41 Running00 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 区别 https://segmentfault.com/a/1190000012419990 阅读全文
posted @ 2021-07-01 16:28 Running00 阅读(19) 评论(0) 推荐(0) 编辑
摘要: https://florian.ec/blog/react-file-upload-jest/ 阅读全文
posted @ 2021-07-01 16:11 Running00 阅读(35) 评论(0) 推荐(0) 编辑
摘要: (我们用的是 --save-dev 而不是 --save,因为代码实际执行时不依赖这个插件——只是在打包时使用。) 阅读全文
posted @ 2021-07-01 13:53 Running00 阅读(27) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/21958891 阅读全文
posted @ 2021-06-30 19:27 Running00 阅读(78) 评论(0) 推荐(0) 编辑
摘要: https://github.com/nodejs/node/issues/24097 https://www.npmjs.com/package/npm-force-resolutions https://blog.csdn.net/qq_44281394/article/details/1090 阅读全文
posted @ 2021-06-29 20:16 Running00 阅读(42) 评论(0) 推荐(0) 编辑
摘要: // file ,input 上传的图片文件 const reader = new FileReader(); reader.readAsDataURL(file); reader.onload = e => { // 成功读取文件 this.setState({ imgSrc: e.target. 阅读全文
posted @ 2021-06-29 15:34 Running00 阅读(26) 评论(0) 推荐(0) 编辑
摘要: accept: https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input/file 阅读全文
posted @ 2021-06-28 17:06 Running00 阅读(166) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 90 下一页