JavaScript
文章平均质量分 68
swordbob
博观而约取,厚积而薄发
展开
-
webpack核心概念介绍
1.入口告诉webpack该应用从哪个js开始去阅读和查验应用源码,从而进行打包和压缩该部分源码2.输出output类似医生针对entry该入口的病人来对症下药,是webpack打包过后的资源文件的路径和名称3.Loader 组装单元类似汽车工厂,车身需要组装上灯,组装上轮子才能安全上路,loader就是灯和轮子希望webpack有对高阶语法的支持时:es6支持————babelLoader前端静态资源支持————urlLoader、fileLoader4.插原创 2021-02-14 17:24:59 · 112 阅读 · 0 评论 -
Function Expression vs Function Declaration的取舍
只有在Declaration不适合或者不方便使用时用Expression,通常用Declaration即可Function Expression vs Function DeclarationLet’s formulate the key differences between Function Declarations and Expressions.First, the syntax: how to differentiate between them in the code. Fun原创 2021-02-19 21:28:48 · 241 阅读 · 0 评论