1 Star 0 Fork 1.5K

jV5code/APIJSON

forked from 腾讯开源/APIJSON 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
post.html 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
TommyLemon 提交于 2017-12-10 16:55 +08:00 . 整理JavaScript工程,引入Vue.js工程
<!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 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/v5xin/APIJSON.git
git@gitee.com:v5xin/APIJSON.git
v5xin
APIJSON
APIJSON
master

搜索帮助