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.use与当前页面define放在一起,请求2次。 #1477

Closed
cxwarny2008 opened this issue Apr 12, 2015 · 1 comment
Closed

seajs.use与当前页面define放在一起,请求2次。 #1477

cxwarny2008 opened this issue Apr 12, 2015 · 1 comment

Comments

@cxwarny2008
Copy link

html页面:
"script src="~/Js/Index.js"></script>
Index.js
define(function (require, exports, module) {
//代码
});
seajs.use("/Js/Index");
通过这种方式加载firebug查看网络请以求存在2次请求Index.js,这种可以改变?这个define只属于这个页面使用。

@army8735
Copy link
Member

id不匹配的话就是再加一次

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