Skip to content

Commit 11176ca

Browse files
committed
add API
1 parent 80db776 commit 11176ca

24 files changed

+6429
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.txt

data/data.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/ajax.html

Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-cn">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>TNJ-DOC: ajax</title>
6+
7+
<script src="scripts/prettify/prettify.js"> </script>
8+
<script src="scripts/prettify/lang-css.js"> </script>
9+
<!--[if lt IE 9]>
10+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11+
<![endif]-->
12+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14+
</head>
15+
16+
<body>
17+
18+
<div id="main">
19+
20+
<!-- <h1 class="page-title"> ajax</h1>-->
21+
22+
23+
24+
25+
26+
<section>
27+
28+
<header>
29+
<h2>
30+
ajax
31+
</h2>
32+
33+
</header>
34+
35+
<article>
36+
<div class="container-overview">
37+
38+
39+
40+
41+
<dt>
42+
<!--<h4 class="name" id="ajax"><span class="type-signature"></span>new ajax<span class="signature">(<span class="optional">arg1</span>, <span class="optional">arg2</span>, <span class="optional">arg3</span>, <span class="optional">arg4</span>)</span><span class="type-signature"></span></h4>-->
43+
44+
45+
<p class="summary">整合ajax的请求,指定post</p>
46+
47+
</dt>
48+
<dd>
49+
50+
51+
<div class="description">
52+
ajax请求
53+
</div>
54+
55+
56+
57+
58+
59+
60+
61+
<h5>参数:</h5>
62+
63+
64+
<table class="params">
65+
<thead>
66+
<tr>
67+
68+
<th>名称</th>
69+
70+
71+
<th>类型</th>
72+
73+
74+
<th>属性</th>
75+
76+
77+
78+
<th>默认</th>
79+
80+
81+
<th class="last">描述</th>
82+
</tr>
83+
</thead>
84+
85+
<tbody>
86+
87+
88+
<tr>
89+
90+
<td class="name"><code>arg1</code></td>
91+
92+
93+
<td class="type">
94+
95+
96+
<span class="param-type">String</span>
97+
98+
99+
100+
</td>
101+
102+
103+
<td class="attributes">
104+
105+
&lt;任意><br>
106+
107+
108+
109+
110+
111+
</td>
112+
113+
114+
115+
<td class="default">
116+
117+
</td>
118+
119+
120+
<td class="description last">请求URL</td>
121+
</tr>
122+
123+
124+
125+
<tr>
126+
127+
<td class="name"><code>arg2</code></td>
128+
129+
130+
<td class="type">
131+
132+
133+
<span class="param-type">Object</span>
134+
135+
136+
137+
</td>
138+
139+
140+
<td class="attributes">
141+
142+
&lt;任意><br>
143+
144+
145+
146+
147+
148+
</td>
149+
150+
151+
152+
<td class="default">
153+
154+
{}
155+
156+
</td>
157+
158+
159+
<td class="description last">请求数据{s:"aaa"}</td>
160+
</tr>
161+
162+
163+
164+
<tr>
165+
166+
<td class="name"><code>arg3</code></td>
167+
168+
169+
<td class="type">
170+
171+
172+
<span class="param-type">Callback</span>
173+
174+
175+
176+
</td>
177+
178+
179+
<td class="attributes">
180+
181+
&lt;任意><br>
182+
183+
184+
185+
186+
187+
</td>
188+
189+
190+
191+
<td class="default">
192+
193+
</td>
194+
195+
196+
<td class="description last">上传成功的回调函数</td>
197+
</tr>
198+
199+
200+
201+
<tr>
202+
203+
<td class="name"><code>arg4</code></td>
204+
205+
206+
<td class="type">
207+
208+
209+
<span class="param-type">String</span>
210+
211+
212+
213+
</td>
214+
215+
216+
<td class="attributes">
217+
218+
&lt;任意><br>
219+
220+
221+
222+
223+
224+
</td>
225+
226+
227+
228+
<td class="default">
229+
230+
json
231+
232+
</td>
233+
234+
235+
<td class="description last">请求返回数据处理方式html,json,text,xml</td>
236+
</tr>
237+
238+
239+
</tbody>
240+
</table>
241+
242+
243+
244+
<dl class="details">
245+
246+
247+
248+
<dt class="tag-version">版本:</dt>
249+
<dd class="tag-version"><ul class="dummy"><li>4.2.5</li></ul></dd>
250+
251+
252+
253+
254+
255+
256+
257+
258+
259+
<dt class="tag-author">作者:</dt>
260+
<dd class="tag-author">
261+
<ul>
262+
<li>susu([email protected])</li>
263+
</ul>
264+
</dd>
265+
266+
267+
268+
269+
270+
271+
272+
273+
274+
275+
276+
277+
278+
279+
</dl>
280+
281+
282+
283+
284+
285+
286+
287+
288+
289+
290+
291+
292+
293+
<h5>示范:</h5>
294+
295+
<pre class="prettyprint"><code>// $PATH为索引路径
296+
var Tool=require("$PATH/lib/base/util");
297+
Tool.ajax(URL, {s:"sss"},function(data) {
298+
alert(data);
299+
},"json");</code></pre>
300+
301+
302+
</dd>
303+
304+
305+
</div>
306+
307+
308+
309+
310+
311+
312+
313+
314+
315+
316+
317+
318+
319+
320+
321+
322+
323+
324+
</article>
325+
326+
</section>
327+
328+
329+
330+
331+
</div>
332+
333+
<nav>
334+
<h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ajax.html">ajax</a></li><li><a href="ajaxupload.html">ajaxupload</a></li><li><a href="cookie.html">cookie</a></li><li><a href="copy.html">copy</a></li><li><a href="datepicker.html">datepicker</a></li><li><a href="dialog.html">dialog</a></li><li><a href="easyPieChart.html">easyPieChart</a></li><li><a href="item.html">item</a></li><li><a href="pager.html">pager</a></li><li><a href="parseTpl.html">parseTpl</a></li><li><a href="slider.html">slider</a></li><li><a href="stringCat.html">stringCat</a></li><li><a href="suggest.html">suggest</a></li><li><a href="tooltip.html">tooltip</a></li><li><a href="validate.html">validate</a></li></ul>
335+
</nav>
336+
337+
<br clear="both">
338+
339+
<footer>
340+
© 2010-2014 tetequ. All Rights Reserved.
341+
</footer>
342+
343+
<script> prettyPrint(); </script>
344+
<script src="scripts/linenumber.js"> </script>
345+
</body>
346+
</html>

0 commit comments

Comments
 (0)