hqchart 1.1.12733 → 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,47 @@
1
+
2
+ /*
3
+ Copyright (c) 2018 jones
4
+
5
+ http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ 开源项目 https://github.com/jones2000/HQChart
8
+
9
+ jones_2000@163.com
10
+
11
+ 阿里云api网关网络请求模块
12
+ */
13
+
14
+ function JSAliYunNetwork()
15
+ {
16
+ this.AliYunUrl=[]; //需要验证的阿里账户的域名
17
+ this.AppCode;
18
+
19
+ this.HttpRequest = function(obj)
20
+ {
21
+ $.ajax(
22
+ {
23
+ headers: this.AppCode,
24
+ url: obj.url, data: obj.data,
25
+ type:obj.type, dataType: obj.dataType,async:obj.async,
26
+ success: obj.success,
27
+ error: obj.error,
28
+ }
29
+ );
30
+ }
31
+ }
32
+
33
+
34
+
35
+ // var g_AilYunNetwork=new JSAliYunNetwork(); //初始化一个全局的变量
36
+ /* g_AilYunNetwork.AliYunUrl[0]="xxxxxxx"; //域名 或 具体的地址
37
+ //设置账户密码
38
+ {
39
+ Authorization:'APPCODE 4333fc85c1284212a4724d7159304e70'
40
+ }
41
+
42
+ //替换默认的网络请求接口
43
+ JSNetwork.HttpRequest= function (obj)
44
+ {
45
+ g_AilYunNetwork.HttpRequest(obj);
46
+ }
47
+ */