Skip to content

Commit 4adfb33

Browse files
committed
use returned uploder obj
1 parent b7f41e7 commit 4adfb33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example/js/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Qiniu.uploader({
1+
var uploader = Qiniu.uploader({
22
runtimes: 'html5,flash,html4',
33
browse_button: 'pickfiles',
44
container: 'container',
@@ -48,6 +48,10 @@ Qiniu.uploader({
4848
}
4949
});
5050

51+
uploader.bind('FileUploaded', function() {
52+
console.log('hello man,a file is uploaded');
53+
});
54+
5155
$(function() {
5256
$('#container').on(
5357
'dragenter',

0 commit comments

Comments
 (0)