简体   繁体   中英

Why can't I use jquery in require.js?

I have problem witha specific piece of code:

<script data-main="http://northapp.co/_a/js/main.min.js" src="http://northapp.co/_a/js/require.js"></script>

Why can not I connect require.js with jquery.min.js ? I would think this code below would work, but it does not. Any ideas?

<script data-main="http://northapp.co/_a/js/main.min.js" src="http://northapp.co/_a/js/require.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

如果require.js需要jquery.js起作用,则必须在require.js引用之前包含jquery.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM