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

preload不能保证加载顺序。。。 #3

Open
erichow opened this issue Jun 30, 2016 · 1 comment
Open

preload不能保证加载顺序。。。 #3

erichow opened this issue Jun 30, 2016 · 1 comment

Comments

@erichow
Copy link

erichow commented Jun 30, 2016

  seajs.config({
    base: './',
    preload: [
      'common/js/lib/jquery-3.0.0.min', 
      'common/js/lib/swiper.min',
      'common/js/lib/jquery.scrollTo.min'
    ]
  });

有时会报错: jquery.scrollTo.min.js:7 Uncaught ReferenceError: jQuery is not defined

@spiritfox358
Copy link

笨办法是这样
require("common/js/lib/jquery-3.0.0.min");
require("common/js/lib/swiper.min");
require("common/js/lib/jquery.scrollTo.min");
放在最前

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