Skip to content

Commit e343fc9

Browse files
committed
fix docs error
1 parent 03fc95f commit e343fc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/js/multiple.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
$(function() {
8-
var Qiniu = new QiniuJsSDK();
98
var uploader = Qiniu.uploader({
109
runtimes: 'html5,flash,html4',
1110
browse_button: 'pickfiles',
@@ -60,8 +59,8 @@ $(function() {
6059
console.log('hello man,a file is uploaded');
6160
});
6261

63-
var Qiniu2 = new QiniuJsSDK();
64-
var uploader2 = Qiniu2.uploader({
62+
var Q2 = new QiniuJsSDK();
63+
var uploader2 = Q2.uploader({
6564
runtimes: 'html5,flash,html4',
6665
browse_button: 'pickfiles2',
6766
container: 'container2',

demo/views/multiple.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ <h4 class="modal-title" id="myModalLabel">查看初始化代码</h4>
159159
key : val,
160160
……
161161
}
162-
var Qiniu2 = new QiniuJsSDK(option2)
162+
var Q2 = new QiniuJsSDK();
163+
var uploader2 = Q2.uploader(option2);
163164
</code></pre>
164165
</div>
165166
<div class="modal-footer">

0 commit comments

Comments
 (0)