1

我正在使用 uploadify 插件来允许用户将文件上传到我的网站。该脚本在 chrome 中运行良好,但在 ie 和 firefox 中不起作用

  $(function() {
    $('#file_upload').uploadify({
     'checkExisting' : 'check-exists.php',
    'buttonText' : 'Select project',
    'fileSizeLimit' : '163840KB',
     'fileTypeDesc' : 'Image Files',
    'fileTypeExts' : '*.zip; *.rar',
        'swf'      : 'uploadify.swf',
        'uploader' : 'uploadify.php',
        'onUploadError' : function(file, errorCode, errorMsg, errorString) {
         $("input[type=submit]").attr("disabled", "disabled");
alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
        },
        'onUploadSuccess' : function(file, data, response) {
            $("input[type=submit]").removeAttr("disabled");
    },

    });

有什么建议么 :)

4

1 回答 1

1

您发布的代码有一个尾随逗号(最后一个),这可能在某些版本的 IE 中不起作用(请参阅此问题)。

此外,您的括号并非全部关闭。尝试更改});}) });

于 2012-10-11T09:13:31.340 回答