2012-02-08 103 views
0

我使用uploadify,這是我當前的代碼:Uploadify警報上傳沒有顯示後

<link href="/uploader/uploadify.css" type="text/css" rel="stylesheet" /> 
<script type="text/javascript" src="/uploader/jquery-1.5.1.js"></script> 
<script type="text/javascript" src="/uploader/swfobject.js"></script> 
<script type="text/javascript" src="/uploader/jquery.uploadify.js"></script> 

<script type="text/javascript"> 
$(document).ready(function() { 
$('#file_upload').uploadify({ 
'uploader' : '/uploader/uploadify.php', 
'swf' : '/uploader/uploadify.swf', 
'cancelImage' : '/uploader/uploadify-cancel.png', 
'auto' : true, 

'onUploadComplete' : function(event, ID, fileObj, response, data) { 
alert('There are ' + data.fileCount + ' files remaining in the queue.'); 
} 
}); 

}); 
</script> 

我我這裏忘了什麼東西?

+1

哪個版本的uploadify您正在使用?我沒有找到任何'onUploadComplete'。他們在這裏有'onComplete'結帳http://www.uploadify.com/documentation/ – tusar 2012-02-08 15:06:18

+0

我使用的是版本3 – Satch3000 2012-02-08 15:36:59

回答

2

試試這個:

eval('var answer = '+response+';'); 
console.log(answer); 

您還可以查看該方法的實際參數使用:

console.log(arguments)