我正在使用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>
我忘了这里的东西?
答案 0 :(得分:2)
试试这个:
eval('var answer = '+response+';');
console.log(answer);
您还可以使用以下方法查看方法的实际参数:
console.log(arguments)