萌新初学,求大大们帮助
seajs.config({
base: "./js/",
alias: {
"jquery": "jquery-1.12.4.min.js",
"swiper" : "idangerous.swiper2.7.6.min.js",
"swiper3d" :"swiper.progress.min.js",
"imglazy" : "jquery.lazyload.min.js"
}
})
// 加载入口模块
seajs.use("common")
common.js
define(function(require, exports, module) {
require('jquery');
require('swiper');
require('swiper3d');
require('swiper_config');
});
因为加载时间问题, 导致会出现其他JS比JQ加载快,而找不到JQ,如何解决呢?我想按顺序执行这些JS
扬帆大鱼
相关分类