1 Star 0 Fork 1.5K

CRayFish07/APIJSON

forked from 腾讯开源/APIJSON 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
complex.html 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<title>GET:Complex</title>
<script type="text/javascript" src="../apijson.js">
</script>
</head>
<body>
<script >
//貌似在JavaScript里JSON注释前不能多于一个空格,否则不能解析
var json = {
"[]":{ //请求一个数组
"page":0, //数组条件
"count":2,
"Moment":{
"content$":"%a%" //对象条件,搜索content中包含 "a" 的动态
},
"User":{ //请求一个名为User的对象
"id@":"/Moment/userId", //缺省依赖路径,从所处容器的父容器路径开始
"@column":"id,name,head" //指定返回字段
},
"Comment[]":{ //请求一个名为Comment的数组,并去除Comment包装
"count":2,
"Comment":{
"momentId@":"[]/Moment/id" //完整依赖路径
}
}
}
};
request(url_get, json);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CRayFish07/APIJSON.git
git@gitee.com:CRayFish07/APIJSON.git
CRayFish07
APIJSON
APIJSON
master

搜索帮助