1 Star 0 Fork 1

zrw_tools/APIJSON-Demo

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
put.html 970 Bytes
Copy Edit Raw Blame History
TommyLemon authored 2020-09-15 21:59 +08:00 . 从 APIJSON 主项目迁移 Demo 项目过来
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PUT</title>
<script type="text/javascript" src="RequestUtil.js" ></script>
</head>
<body>
<script >
// //方式一,适用于删除单个对象。 把id为3的评论所属的动态id改为15
// putObject("Comment", {
// "id":3,
// "momentId":15
// });
//方式二,适用于修改多个同类型对象。 把id为3,4的评论所属的动态id改为12
putArray("Comment", {
"id{}":[3, 4],
"momentId":12
});
// //方式三,通用方式,适用于修改多个对象
// var json = {
// "tag":"Moment[]",
// "Moment":{
// "id":15,
// "praiseUserIdList-":[
// 82001,
// 82002
// ],
// "content":"APIJSON is a JSON Transmission Structure Protocol…"
// }
// };
//
// request(URL_PUT, json);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zrw_tools/APIJSON-Demo.git
git@gitee.com:zrw_tools/APIJSON-Demo.git
zrw_tools
APIJSON-Demo
APIJSON-Demo
master

Search