如果我一個頁面、有兩個地方上傳圖片但是我想他們的key不同,要怎么才能分開不沖突呢,我現(xiàn)在的做法是創(chuàng)建兩個文件var uploader1= Qiniu.uploader({'Key': function(up, file) { var now = new Date(); var date = now.getFullYear()+((now.getMonth()+1)<10?"0":"")+(now.getMonth()+1)+(now.getDate()<10?"0":"")+now.getDate(); return "topic/cover/"+date; },})var uploader2= Qiniu.uploader({ 'Key': function(up, file) { var now = new Date(); var date = now.getFullYear()+((now.getMonth()+1)<10?"0":"")+(now.getMonth()+1)+(now.getDate()<10?"0":"")+now.getDate(); return "topic/banner/"+date; }, })})但是這樣做為什么key會相同呢
七牛上傳圖片的問題
喵喵時光機
2018-11-21 22:19:45