hqchart 1.1.12729 → 1.1.12734

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,44 @@
1
+ /*
2
+ Copyright (c) 2018 jones
3
+
4
+ http://www.apache.org/licenses/LICENSE-2.0
5
+
6
+ 开源项目 https://github.com/jones2000/HQChart
7
+
8
+ jones_2000@163.com
9
+
10
+ 数据请求分装 可以根据不同的平台 替换网络请求模块
11
+ */
12
+
13
+ function JSNetwork()
14
+ {
15
+
16
+ }
17
+
18
+ /*
19
+ JSNetwork.HttpReqeust=function(obj) //对请求进行封装
20
+ {
21
+ $.ajax(
22
+ {
23
+ url: obj.url, data: obj.data,
24
+ type:obj.type, dataType: obj.dataType,async:obj.async,
25
+ success: obj.success,
26
+ error: obj.error,
27
+ }
28
+ );
29
+ }
30
+ */
31
+
32
+
33
+ JSNetwork.HttpRequest=function(obj) //对请求进行封装
34
+ {
35
+ $.ajax(
36
+ {
37
+ url: obj.url, data: obj.data,
38
+ type:obj.type, dataType: obj.dataType,async:obj.async,
39
+ success: obj.success,
40
+ error: obj.error,
41
+ }
42
+ );
43
+ }
44
+