Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新手学习seajs问下问题 #1735

Open
xiaofeiVSkk opened this issue Nov 1, 2017 · 1 comment
Open

新手学习seajs问下问题 #1735

xiaofeiVSkk opened this issue Nov 1, 2017 · 1 comment

Comments

@xiaofeiVSkk
Copy link

define('自身模块id',['依赖模块数组'],function(require,exports,module)){
var kk=require('依赖模块');
......
//问题是上面define里面不是已经有依赖模块了么,为什么我看我的项目js里面在里面又声明了一个依赖
//这个kk变量的依赖和上面有什么不同
})

seajs.config({
map: [
[ '.js', '-debug.js' ]
]
});
什么意思呢?

@zengxiaoluan
Copy link

@xiaofeiVSkk 看下源码分析,深入理解一下 seajs 的模块方案。here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants