-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappIndex.js
56 lines (52 loc) · 1.45 KB
/
appIndex.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Created by zyb on 2017/3/21.
*/
require.config({
paths:{
'jquery':'./lib/jquery',
'backbone':'./lib/backbone',
'underscore':'./lib/underscore',
'text':'./lib/text',
'$css':'./lib/css',
'utilIndex':'./static/js/utilIndex',
'routerIndex':'static/router/routerIndex',
'swiper':'./static/plugin/idangerous.swiper2.7.6.min',
'swipe':'./static/plugin/idangerous.swiper.progress',
'cookie': './lib/jquery.cookie',
'layui':'./static/layui/layui',
},
shim: {
'underscore': {
exports: '_',
},
'jquery': {
exports: '$',
},
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'backbone'
},
'utilIndex':{
deps: ['jquery','swipe','swiper','layui'],
exports: 'utilIndex'
},
'swiper':{
deps: ['jquery'],
exports: 'swiper'
},
'swipe':{
deps: ['swiper'],
exports: 'swipe'
},
'cookie': {
deps: ['jquery'],
exports: 'cookie'
},
}
});
//静态文件版本号
var staticVersion = "1.01";
require(['jquery','backbone','routerIndex','$css','text','swipe','swiper','utilIndex','cookie','layui'],function($, Backbone, routerIndex, $css, text, swipe, swiper, utilIndex, cookie, layui){
//开启路由
Backbone.history.start();
});