From 4b17f71b52caf9737529ec365418050c97118cf3 Mon Sep 17 00:00:00 2001 From: SunLn Date: Wed, 30 Apr 2014 18:23:25 +0800 Subject: [PATCH] update readme --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 30464d3d..8482b5c0 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,20 @@ qiniu-js-sdk dragdrop: true, //开启可拖曳上传 drop_element: 'container', //拖曳上传区域元素的ID,拖曳文件或文件夹后可触发上传 chunk_size: '4mb', //分块上传时,每片的体积 - auto_start: true, //选择文件后自动上传,若关闭需要自己绑定事件触发上传 + auto_start: true, //选择文件后自动上传,若关闭需要自己绑定事件触发上传, + //x_vals : { + // 自定义变量,参考http://developer.qiniu.com/docs/v6/api/overview/up/response/vars.html + // 'time' : function(up,file) { + // var time = (new Date()).getTime(); + // do something with 'time' + // returnt time; + // }, + // 'size' : function(up,file) { + // var size = file.size; + // do something with 'size' + // return size; + // } + //}, init: { 'FilesAdded': function(up, files) { plupload.each(files, function(file) {