From b7d570b693631c121f9ef18170ecec3b808c3e40 Mon Sep 17 00:00:00 2001 From: Minghao Xu Date: Mon, 27 Mar 2017 18:24:08 +0800 Subject: [PATCH 1/2] Fix Typo in readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 512b896..73951ea 100644 --- a/readme.md +++ b/readme.md @@ -314,7 +314,7 @@ options:{ fileFieldName(file){ return file.name }, withCredentials: false, requestHeaders: {'User-Agent': 'So Aanyip'}, - beforeChoose : function()[ + beforeChoose : function(){ return user.isAllowUpload }, chooseFile : function(files){ @@ -762,7 +762,7 @@ options:{ fileFieldName(file){ return file.name }, withCredentials: false, requestHeaders: {'User-Agent': 'So Aanyip'}, - beforeChoose : function()[ + beforeChoose : function(){ return user.isAllowUpload }, chooseFile : function(files){ From 7b322ff91de43f02d29c57db9de80b01116ab56a Mon Sep 17 00:00:00 2001 From: Minghao Xu Date: Mon, 27 Mar 2017 18:35:25 +0800 Subject: [PATCH 2/2] Update readme.md Fix typo --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 73951ea..13d6feb 100644 --- a/readme.md +++ b/readme.md @@ -321,7 +321,7 @@ options:{ console.log('you choose',typeof files == 'string' ? files : files[0].name) }, beforeUpload : function(files,mill){ - if(typeof files == string) return true + if(typeof files == 'string') return true if(files[0].size<1024*1024*20){ files[0].mill = mill return true @@ -769,7 +769,7 @@ options:{ console.log('you choose',typeof files == 'string' ? files : files[0].name) }, beforeUpload : function(files,mill){ - if(typeof files == string) return true + if(typeof files == 'string') return true if(files[0].size<1024*1024*20){ files[0].mill = mill return true