作为一个前端开发面对不同的项目,不同的开发小组使用的不同技术栈总有一种“前端东西真是杂,学不完”的想法。其中包含的“杂”就有很多方面的内容。今天我们主要说的就是:前端模块化开发过程中遇到的“模块化规范”。
提到前端模块化首先想到的肯定是 CMD、AMD、CommonJS 这些规范,当然还有 UMD。下面我们就逐个解释一下各种规范的意义,并做一下对比。
CMD、AMD、CommonJS
UMD
GET和POST是HTTP请求的两种基本方法,要说它们的区别,接触过WEB开发的人都能说出一二。
最直观的区别就是GET把参数包含在URL中,POST通过request body传递参数。
你可能自己写过无数个GET和POST请求,或者已经看过很多权威网站总结出的他们的区别,你非常清楚知道什么时候该用什么。
当你被问到这个问题,你的内心充满了自信和喜悦。
NOTE:以下讨论都是基于 JavaScript 的模块组织(每个模块均以文件形式组织),而非工程的模块化。
The secret to building large app is never build arge apps. Break your applications into small pieces. Then, assemble those testable, bite-sized pieces into your big application. Justin Meyer
The secret to building large app is never build arge apps. Break your applications into small pieces. Then, assemble those testable, bite-sized pieces into your big application.
Justin Meyer
React Native Vue Npm JavaScript Tools 意识
Copyright © 2015 Powered by MWeb, Theme used GitHub CSS.