forked from kissyteam/kissy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIO.html
More file actions
2151 lines (1276 loc) · 124 KB
/
IO.html
File metadata and controls
2151 lines (1276 loc) · 124 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="JsDoc Toolkit" />
<title>IO</title>
<style>
/*************************************************************************************
* Reset
*************************************************************************************/
/** 清除内外边距 **/
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
pre, /* text formatting elements 文本格式元素 */
form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
th, td /* table elements 表格元素 */ {
margin: 0;
padding: 0;
}
/** 设置默认字体 **/
body,
button, input, select, textarea /* for ie */ {
font: 14px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
}
h1, h2, h3, h4, h5, h6 { font-size: 100%; }
address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
/** 重置列表元素 **/
ul, ol { list-style: none; }
/** 重置文本格式元素 **/
a {color:#03c;text-decoration: none; }
a:hover { text-decoration: underline; }
sup { vertical-align: text-top; } /* 重置,减少对行高的影响 */
sub { vertical-align: text-bottom; }
/** 重置表单元素 **/
legend { color: #000; } /* for ie6 */
fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
/* 注:optgroup 无法扶正 */
/** 重置表格元素 **/
table { border-collapse: collapse; border-spacing: 0; }
/*************************************************************************************
* Layout
*************************************************************************************/
/* 居中 */
#content{
margin:0 10px;
}
/** 布局基础样式 **/
.col-main {
float: left;
width: 100%;
/* bug fix: 主栏没有内容时,在 Firefox 和 Chrome 等浏览器下,布局不对 */
min-height: 1px;
}
.col-sub, .col-extra {
float: left;
/*position: relative; 按需设置,仅在需要时添加 */
}
/** 清除浮动 **/
.layout:after, .main-wrap:after, .col-sub:after, .col-extra:after {
content: '\20';
display: block;
height: 0;
clear: both;
}
.layout, .main-wrap, .col-sub, .col-extra {
*zoom: 1;
}
/** 两栏布局 **/
.layout .main-wrap { margin-left: 240px; }
.layout .col-sub { width: 220px; margin-left: -100%; }
/*************************************************************************************
* JSDoc
* gray:444, blue:06f, green:0c9, red:930
*************************************************************************************/
/* reset for jsDoc */
body{color:#444;}
a{color: #06f;}
h1,h2,h3{margin-bottom:10px;padding:8px 0;font:18px tahoma, "Microsoft YaHei", sans-serif;;}
h1{font-size:28px;}
dl{margin-left:30px;}
dt{margin-bottom:5px;font-weight:bold;}
dd{margin-bottom:10px;padding-left:30px;font-size:12px;}
hr{margin:10px 0;height:0;overflow:hidden;border:none;border-top:1px dotted #ccc;}
#header{margin:0 10px;border-bottom: 1px solid #a4d3f2;}
.col-sub{border: 1px solid #a4d3f2;border-top:none;background:#f2f8fa;}
#footer{margin-top:10px;padding:10px 10px 30px 10px;text-align:center;color:#666;border-top:1px solid #ddd;}
.box{margin-bottom:10px;}
.box-hd h3{margin:0;font-size:18px;}
.box-bd{padding-left:30px;}
.col-sub .box{margin:0 10px 10px 10px;}
.class-title{color:#0c9;}
.summary-box{color:#666;font-size:12px;}
.param-list .name{color:#362e2b;}
.code{margin-top:10px;padding:6px 10px;border-left:3px solid #0c9;background:#edfae5;}
.attr,
.desc{color:#666;font-size:12px;}
.name{color:#930;}
.detail-list li{padding-bottom:5px;margin-bottom:10px;border-bottom:1px dotted #ccc;}
.detail-list li li{padding-bottom:0;margin-bottom:0;border-bottom:none;}
.detail-list .title{margin-bottom:10px;}
.detail-list div.desc{margin-left:30px;}
.detail-list li .view-source{display:none;_display:inline;}
.detail-list li:hover .view-source{display:inline;font-size:12px;}
.go-top{position:fixed;width:24px;height:24px;bottom:0;right:10px;line-height:24px;text-align:center;color:#fff;font-size:12px;font-weight:bold;background:#06f;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
a.go-top:hover,
a.go-top:active{text-decoration:none;}
</style>
</head>
<body>
<div id="page">
<div id="header">
<h1 class="logo">API Documentation</h1>
</div>
<div id="content">
<div class="layout">
<div class="col-main">
<div class="main-wrap">
<!-- class title START-->
<h2 class="class-title">
IO
</h2>
<!-- class title END-->
<!-- summary START -->
<div class="box summary-box">
<div class="box-bd">
<p class="desc">Provides utility that brokers HTTP requests through a simplified interface</p>
<p>defined in:
<a href="../symbols/src/d__code_kissy_git_kissy_src_ajax_src_base.js.html">base.js</a></p>
</div>
</div>
<!-- summary END -->
<!-- contructor START -->
<div class="box constructor-box">
<div class="box-hd">
<h3>Function Namespace </h3>
</div>
<div class="box-bd">
<ul class="list summary-list">
<li class="li">
<b class="name"><a href="../symbols/IO.html#constructor">IO</a></b>
<span class="param">(c)</span>
</li>
</ul>
</div>
</div>
<!-- constructor END -->
<!-- properties START -->
<div class="box properties-box">
<div class="box-hd">
<h3>Properties</h3>
</div>
<div class="box-bd">
<ul class="list summary-list">
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.isLocal">isLocal</a></b>
<span class="type">{Boolean}</span>
<span class="attr"><static></span>
<span class="desc">whether current application is a local application(protocal is file://,widget://,about://)</span>
</li>
</ul>
</div>
</div>
<!-- properties END -->
<!-- methods START -->
<div class="box methods-box">
<div class="box-hd">
<h3>Methods</h3>
</div>
<div class="box-bd">
<ul class="list summary-list">
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.get">get</a></b>
<span class="param">(url, data, callback, dataType)</span>
<span class="attr"><static></span>
<span class="desc">perform a get request</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.getConfig">getConfig</a></b>
<span class="param">()</span>
<span class="attr"><static></span>
<span class="desc">get default config value for io request</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.getJSON">getJSON</a></b>
<span class="param">(url, data, callback)</span>
<span class="attr"><static></span>
<span class="desc">perform a get request to fetch json data from server</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.jsonp">jsonp</a></b>
<span class="param">(url, data, callback)</span>
<span class="attr"><static></span>
<span class="desc">preform a jsonp request</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.post">post</a></b>
<span class="param">(url, data, callback, dataType)</span>
<span class="attr"><static></span>
<span class="desc">preform a post request</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.serialize">serialize</a></b>
<span class="param">(formElement)</span>
<span class="attr"><static></span>
<span class="desc">form serialization</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.setupConfig">setupConfig</a></b>
<span class="param">(setting)</span>
<span class="attr"><static></span>
<span class="desc">name-value object that set default config value for io request</span>
</li>
<li class="li">
IO.
<b class="name"><a href="../symbols/IO.html#.upload">upload</a></b>
<span class="param">(url, form, data, callback, dataType)</span>
<span class="attr"><static></span>
<span class="desc">submit form without page refresh</span>
</li>
</ul>
</div>
</div>
<!-- methods END -->
<!-- events START -->
<div class="box events-box">
<div class="box-hd">
<h3>Events</h3>
</div>
<div class="box-bd">
<ul class="list summary-list">
<li class="li">
<b class="name"><a href="../symbols/IO.html#event:complete">complete</a></b>
<span class="param">(e)</span>
<span class="desc">fired after request completes (success or error)</span>
</li>
<li class="li">
<b class="name"><a href="../symbols/IO.html#event:error">error</a></b>
<span class="param">(e)</span>
<span class="desc">fired after request occurs error</span>
</li>
<li class="li">
<b class="name"><a href="../symbols/IO.html#event:send">send</a></b>
<span class="param">(e)</span>
<span class="desc">fired before sending request</span>
</li>
<li class="li">
<b class="name"><a href="../symbols/IO.html#event:start">start</a></b>
<span class="param">(e)</span>
<span class="desc">fired before generating request object</span>
</li>
<li class="li">
<b class="name"><a href="../symbols/IO.html#event:success">success</a></b>
<span class="param">(e)</span>
<span class="desc">fired after request succeeds</span>
</li>
</ul>
</div>
</div>
<!-- events END -->
<!-- constructor details START-->
<div class="detail-box">
<a name="constructor"></a>
<div class="box-hd">
<h3>Function Namespace Detail</h3>
</div>
<div class="box-bd">
<ul class="list detail-list">
<li class="li">
<div class="title">
<b class="name">IO</b>
<span class="param">(c)</span>
</div>
<div class="desc">Provides utility that brokers HTTP requests through a simplified interface</div>
<dl>
<dt>Parameters</dt>
<dd>
<ul class="list param-list">
<li class="li">
<b>c</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>name-value of object to config this io request.<br/> all values are optional.<br/> default value can be set through io.setupConfig<br/></span>
</li>
<li class="li">
<b>c.url</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>request destination</span>
</li>
<li class="li">
<b>c.type</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>request type.eg: "get","post"<br/>Default: "get"<br/></span>
</li>
<li class="li">
<b>c.contentType</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>Default: "application/x-www-form-urlencoded; charset=UTF-8"<br/>Data will always be transmitted to the server using UTF-8 charset<br/></span>
</li>
<li class="li">
<b>c.accepts</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>Default: depends on DataType.<br/>The content type sent in request header that tells the server<br/>what kind of response it will accept in return.<br/>It is recommended to do so once in the io.setupConfig</span>
</li>
<li class="li">
<b>c.async</b>
<span class="type"><span class="light fixedFont">{Boolean}</span> </span>
<span class="desc"><br/>Default: true<br/>whether request is sent asynchronously<br/></span>
</li>
<li class="li">
<b>c.cache</b>
<span class="type"><span class="light fixedFont">{Boolean}</span> </span>
<span class="desc"><br/>Default: true ,false for dataType "script" and "jsonp"<br/>if set false,will append _ksTs=Date.now() to url automatically<br/></span>
</li>
<li class="li">
<b>c.contents</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>a name-regexp map to determine request data's dataType<br/>It is recommended to do so once in the io.setupConfig<br/></span>
</li>
<li class="li">
<b>c.context</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>specify the context of this request's callback (success,error,complete)</span>
</li>
<li class="li">
<b>c.converters</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>Default:{text:{json:JSON.parse,html:mirror,text:mirror,xml:KISSY.parseXML}}<br/>specified how to transform one dataType to another dataType<br/>It is recommended to do so once in the io.setupConfig</span>
</li>
<li class="li">
<b>c.crossDomain</b>
<span class="type"><span class="light fixedFont">{Boolean}</span> </span>
<span class="desc"><br/>Default: false for same-domain request,true for cross-domain request<br/>if server-side jsonp redirect to another domain ,you should set this to true</span>
</li>
<li class="li">
<b>c.data</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>Data sent to server.if processData is true,data will be serialized to String type.<br/>if value if an Array, serialization will be based on serializeArray.</span>
</li>
<li class="li">
<b>c.dataType</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>return data as a specified type<br/>Default: Based on server contentType header<br/>"xml" : a XML document<br/>"text"/"html": raw server data <br/>"script": evaluate the return data as script<br/>"json": parse the return data as json and return the result as final data<br/>"jsonp": load json data via jsonp</span>
</li>
<li class="li">
<b>c.headers</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>additional name-value header to send along with this request.</span>
</li>
<li class="li">
<b>c.jsonp</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>Default: "callback"<br/>Override the callback function name in a jsonp request. eg:<br/>set "callback2" , then jsonp url will append "callback2=?".</span>
</li>
<li class="li">
<b>c.jsonpCallback</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>Specify the callback function name for a jsonp request.<br/>set this value will replace the auto generated function name.<br/>eg:<br/>set "customCall" , then jsonp url will append "callback=customCall"</span>
</li>
<li class="li">
<b>c.mimeType</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>override xhr's mime type</span>
</li>
<li class="li">
<b>c.processData</b>
<span class="type"><span class="light fixedFont">{Boolean}</span> </span>
<span class="desc"><br/>Default: true<br/>whether data will be serialized as String</span>
</li>
<li class="li">
<b>c.scriptCharset</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>only for dataType "jsonp" and "script" and "get" type.<br/>force the script to certain charset.</span>
</li>
<li class="li">
<b>c.success</b>
<span class="type"><span class="light fixedFont">{Function}</span> </span>
<span class="desc"><br/>success(data,textStatus,xhr)<br/>callback function called if the request succeeds.this function has 3 arguments<br/>1. data returned from this request with type specified by dataType<br/>2. status of this request with type String<br/>3. XhrObject of this request , for details <a href="../symbols/IO.XhrObject.html">IO.XhrObject</a></span>
</li>
<li class="li">
<b>c.error</b>
<span class="type"><span class="light fixedFont">{Function}</span> </span>
<span class="desc"><br/>success(data,textStatus,xhr) <br/>callback function called if the request occurs error.this function has 3 arguments<br/>1. null value<br/>2. status of this request with type String,such as "timeout","Not Found","parsererror:..."<br/>3. XhrObject of this request , for details <a href="../symbols/IO.XhrObject.html">IO.XhrObject</a></span>
</li>
<li class="li">
<b>c.complete</b>
<span class="type"><span class="light fixedFont">{Function}</span> </span>
<span class="desc"><br/>success(data,textStatus,xhr)<br/>callback function called if the request finished(success or error).this function has 3 arguments<br/>1. null value if error occurs or data returned from server<br/>2. status of this request with type String,such as success:"ok",error:"timeout","Not Found","parsererror:..."<br/>3. XhrObject of this request , for details <a href="../symbols/IO.XhrObject.html">IO.XhrObject</a></span>
</li>
<li class="li">
<b>c.timeout</b>
<span class="type"><span class="light fixedFont">{Number}</span> </span>
<span class="desc"><br/>Set a timeout(in seconds) for this request.if will call error when timeout</span>
</li>
<li class="li">
<b>c.serializeArray</b>
<span class="type"><span class="light fixedFont">{Boolean}</span> </span>
<span class="desc"><br/>whether add [] to data's name when data's value is array in serialization</span>
</li>
<li class="li">
<b>c.xhrFields</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>name-value to set to native xhr.set as xhrFields:{withCredentials:true}</span>
</li>
<li class="li">
<b>c.username</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>a username tobe used in response to HTTP access authentication request</span>
</li>
<li class="li">
<b>c.password</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>a password tobe used in response to HTTP access authentication request</span>
</li>
<li class="li">
<b>c.xdr</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>cross domain request config object</span>
</li>
<li class="li">
<b>c.xdr.src</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>Default: kissy's flash urlflash sender url</span>
</li>
<li class="li">
<b>c.xdr.use</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>if set to "use", it will always use flash for cross domain request even in chrome/firefox</span>
</li>
<li class="li">
<b>c.xdr.subDomain</b>
<span class="type"><span class="light fixedFont">{Object}</span> </span>
<span class="desc"><br/>cross sub domain request config object</span>
</li>
<li class="li">
<b>c.xdr.subDomain.proxy</b>
<span class="type"><span class="light fixedFont">{String}</span> </span>
<span class="desc"><br/>proxy page,eg:<br/>a.t.cn/a.htm send request to b.t.cn/b.htm: <br/>1. a.htm set document.domain='t.cn'<br/>2. b.t.cn/proxy.htm 's content is <script>document.domain='t.cn'</script><br/>3. in a.htm , call io({xdr:{subDomain:{proxy:'/proxy.htm'}}})</span>
</li>
</ul>
</dd>
<dt>Returns</dt>
<dd>
<ul>
<li>
<span>{<a href="../symbols/IO.XhrObject.html">IO.XhrObject</a>}</span>
<span class="desc">current request object</span>
</li>
</ul>
</dd>
</dl>
</li>
</ul>
</div>
</div>
<!-- constructor details START-->
<!-- properties details START -->
<div class="box">
<div class="box-hd">
<h3>Properties Detail</h3>
</div>
<div class="box-bd">
<ul class="list detail-list">
<li class="li">
<a name=".isLocal"> </a>
<div class="title">
<span>IO.</span>
<b class="name">isLocal</b>
<span>{Boolean}</span>
<span class="attr"><static></span>
<span class="desc">
whether current application is a local application(protocal is file://,widget://,about://)
</span>
</div>
<dl>
</dl>
</li>
</ul>
</div>
</div>
<!-- properties detail END -->
<!-- methods detail START -->
<div class="box">
<div class="box-hd">
<h3>Methods Detail</h3>
</div>
<div class="box-bd">
<ul class="list detail-list">
<li class="li">
<a name=".get"> </a>
<div class="title">
<span>IO.</span>
<b class="name">get</b>
<span class="param">(url, data, callback, dataType)</span>
<span class="attr"><static></span>
<a class="view-source" href="../symbols/src/d__code_kissy_git_kissy_src_ajax_src_ajax.js.html#line56">view source</a>
</div>
<div class="desc">
perform a get request
<br />Defined in:<a href="../symbols/src/d__code_kissy_git_kissy_src_ajax_src_ajax.js.html">ajax.js</a>.
</div>
<dl>
<dt>Parameters</dt>
<dd>
<ul class="list param-list">
<li class="li">
<b class="name">url</b>
<span class="type">{String}</span>
<span class="desc">request destination</span>
</li>
<li class="li">
[
<b class="name">data</b>
]
<span class="type">{Object}</span>
<span class="desc">name-value object associated with this request</span>
</li>
<li class="li">
<b class="name">callback</b>
<span class="type">{Function()}</span>
<span class="desc"><br/>success callback when this request is donewith parameter <br/>1. data returned from this request with type specified by dataType <br/>2. status of this request with type String <br/>3. XhrObject of this request , for details <a href="../symbols/IO.XhrObject.html">IO.XhrObject</a></span>
</li>
<li class="li">
[
<b class="name">dataType</b>
]
<span class="type">{String}</span>
<span class="desc">the type of data returns from this request("xml" or "json" or "text")</span>
</li>
</ul>
</dd>
<dt>Returns</dt>
<dd>
<ul class="list">
<li class="li">
<span class="type">{<a href="../symbols/IO.XhrObject.html">IO.XhrObject</a>}</span>
<span></span>
</li>
</ul>
</dd>
</dl>
</li>
<li class="li">
<a name=".getConfig"> </a>
<div class="title">
<span>IO.</span>
<b class="name">getConfig</b>
<span class="param">()</span>
<span class="attr"><static></span>
<a class="view-source" href="../symbols/src/d__code_kissy_git_kissy_src_ajax_src_base.js.html#line421">view source</a>
</div>
<div class="desc">
get default config value for io request
</div>
<dl>
<dt>Returns</dt>
<dd>
<ul class="list">
<li class="li">
<span class="type">{Object}</span>
<span></span>
</li>
</ul>
</dd>
</dl>
</li>
<li class="li">
<a name=".getJSON"> </a>
<div class="title">
<span>IO.</span>
<b class="name">getJSON</b>
<span class="param">(url, data, callback)</span>
<span class="attr"><static></span>
<a class="view-source" href="../symbols/src/d__code_kissy_git_kissy_src_ajax_src_ajax.js.html#line121">view source</a>
</div>
<div class="desc">
perform a get request to fetch json data from server
<br />Defined in:<a href="../symbols/src/d__code_kissy_git_kissy_src_ajax_src_ajax.js.html">ajax.js</a>.
</div>
<dl>
<dt>Parameters</dt>
<dd>
<ul class="list param-list">
<li class="li">
<b class="name">url</b>
<span class="type">{String}</span>
<span class="desc">request destination</span>
</li>
<li class="li">
[
<b class="name">data</b>
]
<span class="type">{Object}</span>
<span class="desc">name-value object associated with this request</span>
</li>