-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
在下载到 jquery 时,这样配置为什么会出现调用不到 jquery 的现象呢?貌似是路径的问题,刚刚学习到seajs,不知该怎么理解呢 #978
Comments
控制台报什么错? jquery.js 404 吗? |
当上面配置时 |
控制台上可以看到 jquery 是正常加载进来了的 |
|
目测 #930 |
我也遇到类似的情况 jQuery.js 是正常加载进来的 状态是200 但是在define的时候出现 |
jQuery 文件长啥样? |
与上面相同的情况,用的jq的文件就是demo里面的jquery.js |
嗯 搞定啦。。 |
搞定了就好,可以说下原因,说不定能帮助到其他人。 |
@Jerret321 的意思是把amd改成cmd吧?我这样试了一下就好了
|
seajs.config({
base:"../path/",
alias: {
"jquery":"../path/jquery/jquery.js"
}
});
按照官方的的配置可以调用的以下是官方的配置
seajs.config({
base:"../path/",
alias: {
"jquery":"../path/jquery/jquery/1.10.1/jquery.js"
}
});
The text was updated successfully, but these errors were encountered: