-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathindex.htm
39 lines (38 loc) · 976 Bytes
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>RAP Example</title>
<script src="http://g.tbcdn.cn/kissy/k/1.4.1/seed.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.js"></script>
<!-- 引入RAP开始 -->
<script src="http://rap.alibaba-inc.com/rap.plugin.js?projectId=174"></script>
<!-- 引入RAP结束 -->
</head>
<body>
<pre id="container"></pre>
<script>
/**
KISSY.use([ 'node', 'ajax' ], {
success : function(S, Node, IO) {
IO({
url : 'data.json',
dataType : 'json',
type : 'get',
success : function(data) {
Node.one('#container').html(JSON.stringify(data, null, 4));
}
});
}
});
*/
$.ajax({
url:'ajax/vaultList.json',
data:{id:1},
success:function(json){
console.log(json);
}
});
</script>
</body>
</html>