![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 68
swordbob
博观而约取,厚积而薄发
展开
-
webpack核心概念介绍
1.入口 告诉webpack该应用从哪个js开始去阅读和查验应用源码,从而进行打包和压缩该部分源码 2.输出 output类似医生针对entry该入口的病人来对症下药,是webpack打包过后的资源文件的路径和名称 3.Loader 组装单元 类似汽车工厂,车身需要组装上灯,组装上轮子才能安全上路,loader就是灯和轮子 希望webpack有对高阶语法的支持时: es6支持————babelLoader 前端静态资源支持————urlLoader、fileLoader 4.插原创 2021-02-14 17:24:59 · 102 阅读 · 0 评论 -
Function Expression vs Function Declaration的取舍
只有在Declaration不适合或者不方便使用时用Expression,通常用Declaration即可 Function Expression vs Function Declaration Let’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 · 236 阅读 · 0 评论