Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Commit

Permalink
Updated 更新上传例子
Browse files Browse the repository at this point in the history
  • Loading branch information
think2011 committed Nov 14, 2015
1 parent cdabf06 commit bede128
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ document.querySelector('input').addEventListener('change', function () {
var percentComplete = ((e.loaded / e.total) || 0) * 100;
};
// 添加参数和触发上传
rst.formData.append('a', '我是参数');
// 添加参数
rst.formData.append('fileLen', rst.fileLen);
rst.formData.append('xxx', '我是其他参数');
// 触发上传
xhr.send(rst.formData);
/!* ==================================================== *!/*/

Expand Down

0 comments on commit bede128

Please sign in to comment.