-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
34 lines (29 loc) · 911 Bytes
/
app.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
'use strict';
(function (win) {
requirejs.config({
baseUrl: "/assets/js",
paths: {
"jquery": "jquery-1.11.3",
"jqueryui": "jquery-ui",
"juiall": "jui/juiall",
"jquerydatepicker": "i18n/datepicker-zh-CN",
"slimscroll": "jquery.slimscroll.min",
"mock": "mock"
},
"shim": {
"slimscroll": ["jquery"]
},
urlArgs: "v=2.1.2"// + (new Date()).getTime()
});
require(['jquery', 'mock', 'jqueryui', 'juiall', 'jquerydatepicker', 'slimscroll'], function ($, Mock) {
win.Mock = Mock;
var config = {
viewsDir: 'views'
};
$.router.start(config);
//多语言格式化方法
$.jui.template.helper('_formatLanguage', function (content,local) {
return content+'-'+(local||'');
});
});
})(window);