Skip to content

Commit

Permalink
v1.0.1 请求库 jquery 改为直接 ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Sep 25, 2020
1 parent 467e4c0 commit a451041
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 8,327 deletions.
16 changes: 9 additions & 7 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,24 +1205,26 @@ function deleteFolder() {
'deleteObject',
'deleteMultipleObject',
'restoreObject',
'selectObjectContent',
'abortUploadTask',
'selectObjectContent',
'putObject',
'sliceUploadFile',
'selectFileToUpload',
'sliceCopyFile',
'uploadFiles',
'cancelTask',
'pauseTask',
'restartTask',
'putObject',
'sliceCopyFile',
'uploadFiles',
'selectFileToUpload',
'sliceUploadFile',
'-',
'uploadFolder',
'listFolder',
'deleteFolder',
];
var labelMap = {
putObject: '简单上传',
sliceCopyFile: '分片上传',
sliceUploadFile: '分片上传',
sliceCopyFile: '分片复制',
uploadFiles: '批量上传文件',
selectFileToUpload: '上传本地文件',
uploadFolder: '上传文件夹',
Expand All @@ -1235,7 +1237,7 @@ function deleteFolder() {
if (name === '-') {
html.push('<hr/>');
} else {
html.push('<a href="javascript:void(0)" data-method="' + name + '">' + (labelMap[name] || name) + '</a>');
html.push('<a href="javascript:void(0)" data-method="' + name + '">' + name + (labelMap[name] ? ' (' + labelMap[name] + ')' : '') + '</a>');
}
});
container.innerHTML = html.join('');
Expand Down
Loading

0 comments on commit a451041

Please sign in to comment.