E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
commonJS
CommonJS
-Browserify模块化教程
Browserify模块化使用教程创建项目结构|-js|-dist//打包生成文件的目录|-src//源码所在的目录|-module1.js|-module2.js|-module3.js|-app.js//应用主源文件|-index.html|-package.json{"name":"browserify-test","version":"1.0.0"}下载browserify全局:npmin
我也试着去用心
·
2020-08-21 15:20
js模块化
JavaScript中的模块化
这二者的区别主要在于:
CommonJS
对模块的加载时采用的是同步(synchronous)的方式,而AMD对模块的加载采用的是异步(Asynchronous)的方式。
sikies
·
2020-08-21 15:10
前段学习
js学习
【深度全面】前端JavaScript模块化规范进化论
社区先后出现了各种解决方案,包括AMD、CMD、
CommonJS
等,而后ECMA组织在JavaScript语言标准层面,增加了模块功能(因为该功能是在ES2015版本引入的,所以在下文中将之称为ES6module
小贼先生
·
2020-08-21 15:08
javascript
前端
模块化
es6
commonjs
好程序员web前端教程分享js中的模块化二
4.1
CommonJS
对于node,每一个模块的exports={done:false}表示一个模块有没有加载完毕,经过一系列的加载最后全部都会变为true。
好程序员IT
·
2020-08-21 15:39
web前端培训
web
好程序员
JS模块化教程
并且将带领大家学习开发中最流行的
commonjs
,AMD,ES6、CMD规范。建议同学们学习完模块化规范以后再学习项目构建,以更好的武装自己的技能。(01.尚硅谷_JS模块化_入门介绍&)01.尚硅
wespten
·
2020-08-21 15:31
前后端分离&全栈&小程序目录
2018-04-12-Module的加载实现
Module的加载实现-原文地址Module的加载实现ES6加载模块
commonJS
加载模块ES6模块与
CommonJS
模块的差异一、
CommonJS
模块输出的是一个值的拷贝,ES6模块输出的是值的引用
ThemisHoo
·
2020-08-21 15:51
JS中的模块化
函数封装
CommonJs
AMDRequireJS参考资料同步加载在浏览器端可能造成阻塞异步加载有依赖的代码无法正常执行异步加载方案通过XMLHtt
[email protected]
·
2020-08-21 15:45
js
理解JavaScript模块化开发
在梳理的过程中,了解了JS模块化的进化历程,学习到了
CommonJS
、AMD规范、CMD规范和ES6模块化等,下面我会根据自己的理解一一介绍。二、什么是模块化还记得刚刚入行看的几个js原
做个有气质的流氓
·
2020-08-21 15:03
JavaScript
JS_模块模式
一、js模块化规范js在es6之前是没有模块化的,所以后来有了nodejs的
commonjs
规范以及amd规范等的出现。二、模块模式的产生根据YUI规约,我们不应该定义更多的对象在window上。
Qbian
·
2020-08-21 15:22
JavaScript
JavaScript 模块化
js中的模块化分为三种:
commonJS
,MDN,AMD。1.
commonJS
Node.js是
commonJS
规范的主要实践者,它有四个重
iiichigo
·
2020-08-21 14:41
JavaScript模块化最全总结
JavaScript模块化最全总结没有模块化规范的时候在没有
CommonJS
,AMD,CMD等规范的时候,人们为了让代码模块化,采用了下面这个链接里的方法:http://www.ruanyifeng.com
丸子药丸
·
2020-08-21 14:51
前端工程化
JavaScript模块化
随着JavaScript代码复杂度的提高,从无模块化到现在的ES6模块化,有很大的变化,发展阶段如下:无模块化->
CommonJS
规范->AMD规范->CMD规范->ES6模块化无模块化JavaScript
codezha
·
2020-08-21 13:09
js基础
前端
模块化
【深度全面】前端JavaScript模块化规范进化论
社区先后出现了各种解决方案,包括AMD、CMD、
CommonJS
等,而后ECMA组织在JavaScript语言标准层面,增加了模块功能(因为该功能是在ES2015版本引入的,所以在下文中将之称为ES6module
小贼先生
·
2020-08-21 13:45
javascript
前端
模块化
es6
commonjs
JS模块介绍
来源于ES6模块和
CommonJS
模块有哪些差异的提问。
鬼谷中妖
·
2020-08-21 13:31
前端
JS模块化方案(4)之ES6模块化
一、基本介绍不同于
CommonJS
等规范。ES6模块的设计思想是尽量的静态化,使得编译时就能确定模块的依赖关系,以及输入和输出的变量。
Blockchain Explorer
·
2020-08-21 13:25
export
import
export
default
ES6模块化
JavaScript 模块化
CommonJs
C
Creabine
·
2020-08-21 12:53
在VSCode上配置typescript + nodejs 开发环境
npminit创建package.json一路回车创建tsconfig.json输入命令tsc--init会创建一个这样内容的tsconfig.json{"compilerOptions":{"module":"
commonjs
nzjcnjzx
·
2020-08-21 12:20
JavaScript模块化原理浅析
JS模块化的大致流程为:
CommonJS
(服务端)->AMD(浏览器端)->UMD(兼容了
CommonJS
和AMD)->ESModule(ES6标准)。本文将从它们的用法进行介绍,简单实现其原理。
weixin_34044273
·
2020-08-21 12:55
javascript模块化
javascript模块化也不是一天两天了,但是随着技术的发展,常用的模块化方式也就那几种,正所谓数风流模块还看今朝,所以就来对比一下当下使用比较多的
commonJS
和es6标准中提出的模块化方式。
ZacheryWu
·
2020-08-21 12:09
JavaScript
Javascript 模块化规范
目前JavaScript领域广泛使用的模块化规范包括,
commonJs
规范、AMD规范,CMD规范。今天简单介绍下这三种开发规范。
林涧
·
2020-08-21 12:31
Javascript
Web前端
JS模块化规范详解
JavaScript模块化规范详解目录为什么要模块化模块化的好处页面引入加载script存在的问题模块化规范
CommonJS
Node.js中实现浏览器端实现AMDCMDES6模块化1.为什么要模块化?
尘埃丶落定
·
2020-08-21 12:14
JavaScript
Node.JS
gulp-babel编译es6遇到的问题
Babel所做的只是帮你把‘ES6模块化语法’转化为‘
CommonJS
模块化语法’,其中的requireexports等是
CommonJS
在具体实现中所提供的变量。
magicwager
·
2020-08-21 09:01
2019最新Web前端经典面试试题
说说你对AMD和
CommonJS
的了解。请解释原型继承(prototypalinheritance)的工作原理。
小胖梅
·
2020-08-21 07:01
面试题总结
前端科普系列(4):Babel —— 把 ES6 送上天的通天塔
本文首发于vivo互联网技术微信公众号链接:https://mp.weixin.qq.com/s/plJewhUd0xDXh3Ce4CGpHg作者:Morrain一、前言在上一节《
CommonJS
:不是前端却革命了前端
vivo互联网技术
·
2020-08-21 03:56
前端
javascript
babel
es6
前端科普系列(3):
CommonJS
不是前端却革命了前端
Morrain一、前言上一篇《前端科普系列(2):Node.js换个角度看世界》,我们聊了Node.js相关的东西,Node.js能在诞生后火到如此一塌糊涂,离不开它成熟的模块化实现,Node.js的模块化是在
CommonJS
vivo互联网技术
·
2020-08-21 03:49
前端
javascript
commonjs
模块化
node.js
CommonJS
规范
想看原文请移步
CommonJS
规范--JavaScript标准参考教程(alpha)1.了解node应用由模块组成,采用的
commonjs
模块规范。
1如既往
·
2020-08-21 03:14
commonjs
前端
javascript
图解 webpack(模块化 -
CommonJS
)
在前面一篇文章中《模块化系列》彻底理清AMD,
CommonJS
,CMD,UMD,ES6,我们可以学到了各种模块化的机制。那么接下里我们就来分析一下webpack的模块化机制。
蓝色的秋风
·
2020-08-21 03:01
前端
webpack
javascript
模块化
彻底掌握
CommonJS
模块化简介为什么模块化随着前端代码越来越复杂,我们迫切希望解决以下几个问题全局变量污染(多人合作)抽出公共代码(封装)减少请求次数(减少script标签)一个好的模块化方案,必须要能解决依赖问题以及加载顺序问题模块式历史IIFE:使用自执行函数来编写模块化,特点:在一个单独的函数作用域中执行代码,避免变量冲突如何解决依赖,可以让一个依赖暴露到windows上,然后当做参数传入到另外一个需要此依赖的
Runningfyy
·
2020-08-21 02:47
javascript
前端
模块化
commonJS
和 ES Module 的区别
测试环境nodev13.12.0先上结论
commonJS
ESModule值1.基本类型:值复制,不共享2.引用类型:浅拷贝,共享3.工作空间可以修改引入的值1.只读导入,动态读取2.不可在外部修改引用,
CregskiN
·
2020-08-21 02:19
commonjs
es6
CommonJS
、AMD、CMD、ES6 模块规范讲解
目标通过阅读本篇文章你可以学习到:原始模拟模块的一些写法
CommonJS
规范AMD规范CMD规范AMD和CMD的区别ES6Modules规范
CommonJS
与ES6Modules规范的区别模块化原始写法在没有
前端大菜鸟
·
2020-08-21 02:00
commonjs
cmd
es6
javascript
前端
JavaScript模块化
UMD叫做通用模块定义规范(UniversalModuleDefinition),它可以通过运行时或者编译时让同一个代码模块在使用
CommonJs
、CMD甚至是AMD的项目中运行。
小小
·
2020-08-21 02:08
前端
模块化
CommonJS
、AMD、CMD、ES6 模块规范讲解
目标通过阅读本篇文章你可以学习到:原始模拟模块的一些写法
CommonJS
规范AMD规范CMD规范AMD和CMD的区别ES6Modules规范
CommonJS
与ES6Modules规范的区别模块化原始写法在没有
前端大菜鸟
·
2020-08-21 01:05
commonjs
cmd
es6
javascript
前端
require VS import VS import() 对比分析(史上最详细)
前置知识-几种模块化方案require属于
commonJS
规范,想了解详细的,戳我;静态import,动态import()属于ES6规范;require用法require可以引用JS、json等;//test.jsmodule.exports
mingqingyuefeng
·
2020-08-21 00:54
前端模块化详解(ESM &
CommonJs
)
关键词:ESModule、
CommonJs
系列文章:ES6精读【划重点系列】(二)前文涉及:class实例化和继承正文从此开始~前言开始正文前,先补充几个基本知识:Q1:js是解释执行,每一个代码块的执行过程
夜暮sky
·
2020-08-21 00:54
javascript
前端
模块化
es6
commonjs
前端模块化详解(ESM &
CommonJs
)
关键词:ESModule、
CommonJs
系列文章:ES6精读【划重点系列】(二)前文涉及:class实例化和继承正文从此开始~前言开始正文前,先补充几个基本知识:Q1:js是解释执行,每一个代码块的执行过程
夜暮sky
·
2020-08-21 00:54
javascript
前端
模块化
es6
commonjs
前端面试每日 3+1 —— 第326天
[js]举例说明为什么说ES模块比
commonJS
模块还优秀?[软技能]你最近在忙什么?《论语》,曾子曰:“吾日三省吾身”(我每天多次反省自己)。
浪子神剑
·
2020-08-21 00:03
commonjs
颜色
javascript
前端
html
前端面试每日 3+1 —— 第326天
[js]举例说明为什么说ES模块比
commonJS
模块还优秀?[软技能]你最近在忙什么?《论语》,曾子曰:“吾日三省吾身”(我每天多次反省自己)。
浪子神剑
·
2020-08-21 00:03
commonjs
颜色
javascript
前端
html
前端面试每日 3+1 —— 第325天
[js]请说说
commonJS
模块与ES模块的差异有哪些?[软技能]你英语怎么样?不用全文翻译能正常阅读外文文档吗?《论语》,曾子曰:“吾日三省吾身”(我每天多次反省自己)。
浪子神剑
·
2020-08-21 00:27
英文
英语
commonjs
ecmascript
html5plus
前端面试每日 3+1 —— 第325天
[js]请说说
commonJS
模块与ES模块的差异有哪些?[软技能]你英语怎么样?不用全文翻译能正常阅读外文文档吗?《论语》,曾子曰:“吾日三省吾身”(我每天多次反省自己)。
浪子神剑
·
2020-08-21 00:27
英文
英语
commonjs
ecmascript
html5plus
webpack新特性介绍
例如:JSX的出现为我们提供了一个清晰、直观的方式来描述组件树,LESS/SASS的出现提高了我们书写css的能力,AMD/
CommonJS
/ES6的出现为我们模块化开发提供了便利。
bo_bo_bo_la
·
2020-08-21 00:00
【漫游Github】无编译/无服务器,实现浏览器的
CommonJS
模块化
引言平时经常会逛Github,除了一些star极高的大项目外,还会在Github上发现很多有意思的小项目。项目或是想法很有趣,或是有不错的技术点,读起来都让人有所收获。所以准备汇总成一个「漫游Github」系列,不定期分享与解读在Github上偶遇的有趣项目。本系列重在原理性讲解,而不会深扣源码细节。好了下面进入正题。本期要介绍的仓库叫one-click.js。1.one-click.js是什么o
alienzhou
·
2020-08-20 23:57
javascript
前端
模块化
构建工具
github
【漫游Github】无编译/无服务器,实现浏览器的
CommonJS
模块化
引言平时经常会逛Github,除了一些star极高的大项目外,还会在Github上发现很多有意思的小项目。项目或是想法很有趣,或是有不错的技术点,读起来都让人有所收获。所以准备汇总成一个「漫游Github」系列,不定期分享与解读在Github上偶遇的有趣项目。本系列重在原理性讲解,而不会深扣源码细节。好了下面进入正题。本期要介绍的仓库叫one-click.js。1.one-click.js是什么o
alienzhou
·
2020-08-20 23:57
javascript
前端
模块化
构建工具
github
模块化-
CommonJS
·AMD·CMD·UMD·ES6
CommonJS
使用require和exports关键字和模块系统进行交互
CommonJS
不支持异步加载一个文件就是一个模块Nodejs的模块规范受到了
CommonJS
的影响,但Nodejs支持使用module.exports
specialCoder
·
2020-08-20 23:16
javascript
模块化
模块化-
CommonJS
·AMD·CMD·UMD·ES6
CommonJS
使用require和exports关键字和模块系统进行交互
CommonJS
不支持异步加载一个文件就是一个模块Nodejs的模块规范受到了
CommonJS
的影响,但Nodejs支持使用module.exports
specialCoder
·
2020-08-20 23:16
javascript
模块化
JavaScript模块
模块的优点:1.可维护性;2.命名空间;3.重用代码常见的模块化规范:
CommonJS
、AMD、CMD,也有ES6的Modules
CommonJS
CommonJS
的核心思想就是通过exports或者module.exports
梁柱
·
2020-08-20 23:57
前端
node.js
amd模块加载
cmd
JavaScript模块
模块的优点:1.可维护性;2.命名空间;3.重用代码常见的模块化规范:
CommonJS
、AMD、CMD,也有ES6的Modules
CommonJS
CommonJS
的核心思想就是通过exports或者module.exports
梁柱
·
2020-08-20 23:57
前端
node.js
amd模块加载
cmd
CMD、AMD、
CommonJS
JS模块化开发的标准1.AMD`//a.jsdefine(function(){console.log('执行a.js');return{name:function(){console.log('MynameisA');}}});``//b.jsdefine(function(){console.log('执行b.js');return{name:function(){console.log('M
清晖
·
2020-08-20 23:03
amd模块加载
cmd
commonjs
CMD、AMD、
CommonJS
JS模块化开发的标准1.AMD`//a.jsdefine(function(){console.log('执行a.js');return{name:function(){console.log('MynameisA');}}});``//b.jsdefine(function(){console.log('执行b.js');return{name:function(){console.log('M
清晖
·
2020-08-20 23:03
amd模块加载
cmd
commonjs
前端面试每日 3+1 —— 第183天
[软技能]说说你对AMD、CMD和
CommonJS
的理解《论语》,曾子曰:“吾日三省吾身”(我每天多次反省自己)。前端面试每日3+1题,以面试题来驱动学习,每天进步一点!
浪子神剑
·
2020-08-20 22:11
amd模块加载
cmd
commonjs
seajs
requirejs
前端面试每日 3+1 —— 第183天
[软技能]说说你对AMD、CMD和
CommonJS
的理解《论语》,曾子曰:“吾日三省吾身”(我每天多次反省自己)。前端面试每日3+1题,以面试题来驱动学习,每天进步一点!
浪子神剑
·
2020-08-20 22:11
amd模块加载
cmd
commonjs
seajs
requirejs
上一页
26
27
28
29
30
31
32
33
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他