@@ -6,13 +6,13 @@ By [Tencent AlloyTeam](http://www.AlloyTeam.com/)
6
6
7
7
## 我们的愿景
8
8
9
- 成为业界卓越的Web团队 !
9
+ 成为宇宙卓越的Web团队 !
10
10
11
11
12
12
## 团队部分代码规范
13
13
虽然这些细节是小事,但是却体现了一个coder的专业程度。
14
14
更多详细情况请看:
15
- http://alloyteam.github.io/code-guide /
15
+ http://alloyteam.github.io/CodeGuide /
16
16
17
17
18
18
### 标准文件结构
@@ -38,7 +38,7 @@ http://alloyteam.github.io/code-guide/
38
38
...
39
39
40
40
41
- ps: 文件名全部英文小写,不要加复数s或es等等,必要时可以使用下划线“ _ ” 。
41
+ 文件名全部英文小写,用下划线分隔 。
42
42
43
43
44
44
@@ -69,7 +69,7 @@ ps:文件名全部英文小写,不要加复数s或es等等,必要时可以
69
69
<script type="text/javascript" src="./js/jx.min.js"></script>
70
70
<script type="text/javascript">
71
71
72
- var J = new Jx();
72
+ var J = new Jx();
73
73
74
74
</script>
75
75
</body>
@@ -80,29 +80,29 @@ ps:文件名全部英文小写,不要加复数s或es等等,必要时可以
80
80
### 标准javascript代码
81
81
82
82
/**
83
- * == Javascript eXtension 模块 =========================================================================
84
- * Copyright (c) 2012 Tencent AlloyTeam, All rights reserved.
83
+ * === Javascript eXtension 模块 =========================================================================
84
+ * Copyright (c) 2015 Tencent AlloyTeam, All rights reserved.
85
85
* http://www.AlloyTeam.com/
86
86
* Code licensed under the BSD License:
87
87
* http://www.AlloyTeam.com/license.txt
88
88
*
89
89
* @version 2.0
90
- * @author Kinvix(< a href = " mailto: Kinvix@gmail.com" > Kinvix@gmail.com </ a >)
90
+ * @author Kinvix < Kinvix@gmail.com >
91
91
* @description 描述文字
92
- * -------------------------------------------------------------- 2009.11.17 ----------------------------
92
+ * ---2015.6.1 ----------------------------
93
93
* /
94
94
95
95
/**
96
96
* 注释
97
97
*/
98
- Jx().$package(" tencent.alloyteam" , function(J){
99
- var packageContext = this,
98
+ Jx().$package(' tencent.alloyteam' , function(J) {
99
+ var self = this,
100
100
$D = J.dom,
101
101
$E = J.event,
102
102
$H = J.http;
103
103
104
- // 输出字符串: Hello world!
105
- J.out(" Hello world!" );
104
+ // 输出字符串' Hello world!'
105
+ J.out(' Hello world!' );
106
106
107
107
// 输出this === tencent.alloyteam的判断结果
108
108
J.out(this === tencent.alloyteam);
@@ -111,25 +111,29 @@ ps:文件名全部英文小写,不要加复数s或es等等,必要时可以
111
111
112
112
### 标准css代码
113
113
114
- .copyright{
115
- margin:50px 0 0 0;
116
- height:50px;
117
- color:#999999;
118
- font-family:Tahoma;
119
- font-size: 12px;
120
- text-align:center;
114
+ .copyright {
115
+ margin: 50px 0 0 0;
116
+ height: 50px;
117
+
118
+ font-family: Tahoma;
119
+ font-size: 12px;
120
+ text-align: center;
121
+
122
+ color: #999;
121
123
}
122
-
123
- .copyright a{
124
- color:#999999;
125
- text-decoration:none;
124
+
125
+ .copyright a {
126
+ text-decoration: none;
127
+
128
+ color: #999;
126
129
}
127
-
130
+
128
131
/* 注释 */
129
132
.copyright a:hover,
130
- .copyright a:focus{
131
- outline:none;
132
- text-decoration:underline;
133
+ .copyright a:focus {
134
+ text-decoration: underline;
135
+
136
+ outline: none;
133
137
}
134
138
135
139
### 标准版权声明代码
@@ -150,15 +154,15 @@ ps:文件名全部英文小写,不要加复数s或es等等,必要时可以
150
154
<!--Google Analytics-->
151
155
<script type="text/javascript">
152
156
153
- var _gaq = _gaq || [];
154
- _gaq.push(['_setAccount', 'UA-23019343-9']);
155
- _gaq.push(['_trackPageview']);
157
+ var _gaq = _gaq || [];
158
+ _gaq.push(['_setAccount', 'UA-23019343-9']);
159
+ _gaq.push(['_trackPageview']);
156
160
157
- (function() {
158
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
159
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
160
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
161
- })();
161
+ (function() {
162
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
163
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
164
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
165
+ })();
162
166
163
167
</script>
164
168
@@ -167,13 +171,10 @@ ps:文件名全部英文小写,不要加复数s或es等等,必要时可以
167
171
168
172
### 关于团队
169
173
170
- ``` javascript
171
- var team = {
172
- name : " AlloyTeam" ,
173
- qq : 1838456721 ,
174
- site : " http://www.alloyteam.com/" ,
175
- github : " http://alloyteam.github.io/" ,
176
- coding : " http://www.coding.net/alloyteam/"
177
- }
178
-
179
- ```
174
+ var AlloyTeam = {
175
+ name: 'AlloyTeam',
176
+ qq: 1838456721,
177
+ site: 'http://www.alloyteam.com/',
178
+ github: 'http://alloyteam.github.io/',
179
+ coding: 'http://www.coding.net/alloyteam/'
180
+ }
0 commit comments