Skip to content

Commit f66cc2e

Browse files
carsonxucarsonxu
authored andcommitted
modify demo
1 parent c0fe76b commit f66cc2e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

demo/demo.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ function deleteObject() {
5252
});
5353
}
5454

55+
function deleteMultipleObject() {
56+
cos.deleteMultipleObject({
57+
Bucket: config.Bucket,
58+
Region: config.Region,
59+
Objects : [
60+
{Key : '1mb.zip'},
61+
{Key : '3mb.zip'},
62+
]
63+
}, function (err, data) {
64+
if (err) {
65+
return console.log(err);
66+
}
67+
console.log(JSON.stringify(data, null, ' '));
68+
});
69+
}
70+
5571
function getBucket() {
5672
cos.getBucket({
5773
Bucket: config.Bucket,
@@ -335,5 +351,6 @@ getService();
335351
// putObjectCopy();
336352
// headObject();
337353
// deleteObject();
354+
// deleteMultipleObject();
338355
// getObjectACL();
339356
// sliceUploadFile();

0 commit comments

Comments
 (0)