Skip to content

Commit 9d662e2

Browse files
author
ele828
committed
proj init
1 parent 482bf49 commit 9d662e2

File tree

5 files changed

+39
-11
lines changed

5 files changed

+39
-11
lines changed

README.md

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
# neu-cn
2-
Official Website of NEU
3-
Including Chinese version & English version.
2+
# 开发阶段
3+
* Demo开发
4+
5+
# 开发说明
6+
7+
* 采用sea.js模块加载器
8+
9+
* 项目结构
10+
* assets/images 存放图片
11+
12+
* assets/styles 存放css样式表
13+
14+
* libs 存放第三方js库
15+
16+
* mods 存放自己编写的js模块
17+
18+
* 尽量把可以复用的部分抽象出来。
19+
20+
21+
22+

SubIndex/SubIndex_1.html

-9
This file was deleted.

index.html

+11
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
<style type="text/css">
1111
html, body { height: 100%; width: 100%; }
1212
</style>
13+
14+
<script type="text/javascript" src="libs/sea.js"></script>
15+
<script type="text/javascript">
16+
// seajs 的简单配置
17+
seajs.config({
18+
base: "./"
19+
})
20+
21+
// 加载入口模块
22+
seajs.use("mods/index.js");
23+
</script>
1324
</head>
1425
<body>
1526
<div class="am-vertical-align" style="height: 100%; width: 50%; margin: auto;">

libs/sea.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mods/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
define(function(require, exports, module) {
2+
3+
alert('welcome');
4+
5+
});

0 commit comments

Comments
 (0)