Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jan 15, 2018
1 parent 905bc7b commit 4257d09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/sts-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>Form 表单简单上传(兼容 IE8)</h1>
var method = (options.Method || 'get').toLowerCase();
var key = options.Key || '';
var pathname = key.indexOf('/') === 0 ? key : '/' + key;
var url = '../server/key.php?method=' + method + '&pathname=' + encodeURIComponent(pathname);
var url = '../server/sts.php?method=' + method + '&pathname=' + encodeURIComponent(pathname);
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onreadystatechange = function (e) {
Expand Down
2 changes: 1 addition & 1 deletion demo/sts-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>Ajax Post 上传</h1>
var method = (options.Method || 'get').toLowerCase();
var key = options.Key || '';
var pathname = key.indexOf('/') === 0 ? key : '/' + key;
var url = '../server/key.php?method=' + method + '&pathname=' + encodeURIComponent(pathname);
var url = '../server/sts.php?method=' + method + '&pathname=' + encodeURIComponent(pathname);
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = function (e) {
Expand Down
2 changes: 1 addition & 1 deletion demo/sts-put.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Ajax Put 上传</h1>
var method = (options.Method || 'get').toLowerCase();
var key = options.Key || '';
var pathname = key.indexOf('/') === 0 ? key : '/' + key;
var url = '../server/key.php?method=' + method + '&pathname=' + encodeURIComponent(pathname);
var url = '../server/sts.php?method=' + method + '&pathname=' + encodeURIComponent(pathname);
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = function (e) {
Expand Down

0 comments on commit 4257d09

Please sign in to comment.