1 Star 0 Fork 46

TommyLemon/APIJSON-Demo

forked from 西东/APIJSON-Demo 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
post.html 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
TommyLemon 提交于 2020-09-15 21:59 +08:00 . 从 APIJSON 主项目迁移 Demo 项目过来
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>POST</title>
<script type="text/javascript" src="RequestUtil.js"></script>
</head>
<body>
<script >
//方式一,适用于新增单个对象
postObject("Moment", {
"userId":82001,
"content":"APIJSON, let interfaces go to hell!",
"pictureList":[
"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000",
"http://common.cnblogs.com/images/icon_weibo_24.png"
]
});
//方式二,通用方式,适用于新增单个对象
// var json = {
// "tag":"Moment",
// "Moment":{
// "userId":82001,
// "content":"APIJSON, let interfaces go to hell!",
// "pictureList":[
// "http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000",
// "http://common.cnblogs.com/images/icon_weibo_24.png"
// ]
// }
// };
//
// request(URL_POST, json);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/TommyLemon/APIJSON-Demo.git
git@gitee.com:TommyLemon/APIJSON-Demo.git
TommyLemon
APIJSON-Demo
APIJSON-Demo
master

搜索帮助