forked from Tencent/APIJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.html
More file actions
executable file
·25 lines (22 loc) · 606 Bytes
/
Copy pathsingle.html
File metadata and controls
executable file
·25 lines (22 loc) · 606 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GET:Single</title>
<script type="text/javascript" src="../RequestUtil.js"></script>
</head>
<body>
<script >
//方式一,适用于获取单个对象的全部内容。 获取id为15的动态
getObject("Moment", 15);
// //方式二,适用于获取任意内容(见column)、任意类型(见rely)、任意数量(见array)、任意结构(见complex)的对象。 获取id为15的动态
// var json = {
// "Moment":{
// "id":15
// }
// };
//
// request(URL_GET, json);
</script>
</body>
</html>