-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
31 lines (21 loc) · 686 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
/**
* 程序入口文件
*/
//https://github.com/ggpp224/jQuery-menu-aim
define(function(require,exports,module){
window.Ambow = require('ambow');
//将全局变量赋给App
window.App = require('global');
//加载events枚举
window.Events = require('app/Events');
//渲染左侧面板
var LeftNavView = require('app/NavLeft');
App.leftNav = new LeftNavView().render();
//指向业务主要操作的中间内容区域JQuery对象,方便操作
App.el = $('#content-view');
App.G_NavData = require('crumb');
require('app/Router');
//加载默认页
//Ambow.router.load('module1/Page1/');
Ambow.router.load('home/');
});