📅  最后修改于: 2022-03-11 15:04:22.328000             🧑  作者: Mango
$scope.s3Url = 'https://s3-.amazonaws.com/myBucket/';
var bucket = new AWS.S3({params: {Bucket: 'myBucket'}});
bucket.listObjects(function (err, data) {
if (err) {
console.log(err);
} else {
console.log(data);
$scope.allImageData = data.Contents;
}
});