Jquery上传器没有';我不能在mozilla firefox中工作

Jquery上传器没有';我不能在mozilla firefox中工作,jquery,file-upload,Jquery,File Upload,我用它在服务器上上传文件,但它在firefox中不起作用,在chrome、safari、opera和IE中也能正常工作。有人能帮我吗 <script src="@Url.Content("~/Scripts/jquery.uploadify.js")" type="text/javascript"></script> <script type="text/javascript"> $(window).load( function () {

我用它在服务器上上传文件,但它在firefox中不起作用,在chrome、safari、opera和IE中也能正常工作。有人能帮我吗

<script src="@Url.Content("~/Scripts/jquery.uploadify.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(window).load(
    function () {
        $("#fileuploader").fileUpload({
            'uploader': '/Scripts/uploader.swf',
            'cancelImg': '/Images/cancel.png',
            'buttonText': 'Select File(s)',
            'script': 'Chat/FileUpload', 
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png;*.rar;*.zip',
            'multi': true,
            'auto': true,
            'onComplete': function (event, id, fileObj, response, data) {
                response = $.parseJSON(response);
               if(response.Status != null) {
                   alert(response.Status);
               }
            }
        });
    }
);
    </script>

<div id="fileuploader"></div>

$(窗口)。加载(
函数(){
$(“#文件上传器”).fileUpload({
“uploader”:“/Scripts/uploader.swf”,
“cancelImg”:“/Images/cancel.png”,
“buttonText”:“选择文件”,
'script':'Chat/FileUpload',
“fileExt”:“*.jpg;*.jpeg;*.gif;*.png;*.rar;*.zip”,
"多":对,,
“自动”:正确,
“onComplete”:函数(事件、id、fileObj、响应、数据){
response=$.parseJSON(response);
if(response.Status!=null){
警报(响应状态);
}
}
});
}
);
错误:flashVer.split不是一个函数 源文件:

var-flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins[“Shockwave Flash 2.0”]| | | navigator.plugins[“Shockwave Flash 2.0”]{var swVer2=navigator.plugins[“Shockwave Flash”+swVer2.0”){var swVer2=navigator.plugins[“Shockwave Flash 2.0”]?“2.0”:“;var flashDescription=navigator.plugins[“Shockwave Flash”+swVer2.0”.说明[2] .split(“.”);var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==”){versionRevision=descArray[4]}if(versionRevision[0]==“d”){versionRevision=versionRevision.substring(1)}否则{if(versionRevision[0]==“r”){versionRevision=versionRevision.indexOf.substring(1){(“d”)>0{versionRevision=versionRevision.substring(0,versionRevision.indexOf(“d”)}}var flashVer=versionMajor+”+versionMinor+“+versionRevision}}}else{if($.browser.msie){var version;var axo;var e;try{axo=new ActiveXObject(“shockwavelash.shockwavelash.7”);version=axo.GetVariable($version”)}catch(e){flashVer=version.replace)(“WIN,”).replace”)替换(}”,“,”)}flashVer=flashVer.split(“.”[0];if(jQuery){(function)(a){a.extend(a.fn,{fileUpload:function(b){if(flashVer>=9){a(this)。each(function(){settings=a.extend({uploader:“uploader.swf”),高:30,宽:110,cancelImg:“cancel.png”,wmode:“不透明”,scriptAccess:“sameDomain”,fileDataName:“Filedata”,“displayData:”百分比),onInit:function(){},onSelect:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},b;var d=location.pathname;d=d.split(“/”;d.pop();d=d.join(“/”+“/”)/”;var f=“&pagepath=“+d;if(settings.buttonImg){f+=”&buttonImg=“&buttonImg=”)escape(settings.buttonext)}if(settings.buttonext){)=&buttonext(settings.buttonext)}if(settings.rollover){f+=“&rollover=true”}f+=”&script=“+settings.script;f+=”&folder=“+escape(settings.folder);if(settings.scriptData){var g=”“;for(var c in settings.scriptData){g+=”&scriptData=“+escape(g)}f+=”&btnWidth=“+settings.width;f+=”&nheight=“+settings.wmbt=“+settings.wmode;if(settings.hideButton){f+=”&hideButton=true”}if(settings.fileDesc){f+=”&fileDesc=“+settings.fileDesc+”&fileExt=“+settings.fileExt}if(settings.multi){f+=”&multi=true”}if(settings.auto f+=”&auto true”}if(settings.sizeLimit){f+=”&sizeLimit=“+settings.sizeLimit}if(settings.simUploadLimit){simUploadLimit)=+settings.simUploadLimit}if(settings.checkScript){f+=”&checkScript=“+settings.checkScript}if(settings.fileDataName){f+=”&fileDataName=“+settings.fileDataName}if(a.browser.msie){flashElement=”}else(flashElement=”)if(settings.onInit()!=false){a(this.css)(“display”,“none”);if(a.browser.msie){a(this){a)(this.attr)之后;document((闪现)之后(闪现)之后(闪现)之后(闪现)之后(闪现)之后(闪现)之后(闪现)之后a(“#“+a(这一)本.attr(“id”)+“上载者”)。之后(“(“)之后(“)之后)之后((“)之后)之后((“)之后)之后(甲(一名)之后)之后(甲(一个)之后)之后(一(一)之后)之后(一(一)(一)(一)(一)之后)之后)一(一个(那个)之后)之后(,(,(,(,(,(,(,(,(,(,(该)上传者)一)之后)之后)一名)之后)之后)之后)一(一(,(,(,(,(,(,(,(,(,(,(,(,(,(该)一)一)一)之后)之后)一)(一)(一)一)(一)(该)一)(一)(该)一)(该)之后)之后)一个(,(,(,(,(,(,(,(,(,(,(,(,(,(());if(m.length>1){k=m[0]+>“+m[1].subser(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substucher(0,20)+“}else{fileName=i.name}a(#“+a(this).attr(“id”)+“Queue”).append(“+fileName+=”(+k+l++”)}});if(typeof(settings.onSelectOnce)=“this”).selectOnce”).selecta(this){selectOnce”).bind”){,(i.文件夹=d+k;为(VAH)香港警方;为(VAH)香港警方;为(VAH)香港警方;为(VAH)香港警方;为(VAH h)香港警方;为(VAH h)香港警方;为(VAH)香港警方;为(若(o)香港警方;若(o)香港警方(var n=n=h)设置;若(o)若(o)香港警方(VAN=var)上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述上述·如果(o){document.getElementById(a(m.target).attr(“id”)+“Uploader”).startFileUpload(n,true)}else{document.getElementById(a(m.target).attr(“id”)+“Uploader”).startFileUpload(null,true)},“json});a(this).bind(“rfuCancel”,{action:settings.onCancel},function(j,h,i,k){if(j.data.action)(j,h,i,k){fadeOut()=false){#“+a(this.attr(id)+h.remove()}}”);a(this.bind(rfnuclearqueue),{action:settings.onClearQueue},function(){if(event.data.action()!==false){a(#this.attr(id)+“Queue”).contents().fadeOut(250,function(){a(#attr(id)+“Queue”).empty())});a(this.bind(rfror),{action:settings,settings,rori,function,function,{k,if(k)})(1)文本(i.类型+“错误-”,错误-“+j.名称““+j.名称””;a a((((35?)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(((35?)、a(本)a(本)a(本)a(本)a(本)a(本)a(((((35?)a(“id“;;;;;;;;;;;)a)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(本)a(((id“+h+“ProgressBar”).css(“width”,k.percentage+“%”);if(j.data.toDisplay==“percentage”){displayData=“-”+k.percentage+“%”如果(j.data.toDisplay==“speed”){display data=“-”+k.speed+“KB/s”}如果(j.data.toDisplay==null){displayData=“”}a(“#“+a(this).attr”(“id”)+h+.pe
var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4]}if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1)}else{if(versionRevision[0]=="r"){ersionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"))}}}var flashVer=versionMajor+"."+versionMinor+"."+versionRevision}}else{if($.browser.msie){var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version")}catch(e){}flashVer=version.replace("WIN ","").replace(",",".")}}flashVer=flashVer.split(".")[0];if(jQuery){(function(a){a.extend(a.fn,{fileUpload:function(b){if(flashVer>=9){a(this).each(function(){settings=a.extend({uploader:"uploader.swf",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",displayData:"percentage",onInit:function(){},onSelect:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){}},b);var d=location.pathname;d=d.split("/");d.pop();d=d.join("/")+"/";var f="&pagepath="+d;if(settings.buttonImg){f+="&buttonImg="+escape(settings.buttonImg)}if(settings.buttonText){f+="&buttonText="+escape(settings.buttonText)}if(settings.rollover){f+="&rollover=true"}f+="&script="+settings.script;f+="&folder="+escape(settings.folder);if(settings.scriptData){var g="";for(var c in settings.scriptData){g+="&"+c+"="+settings.scriptData[c]}f+="&scriptData="+escape(g)}f+="&btnWidth="+settings.width;f+="&btnHeight="+settings.height;f+="&wmode="+settings.wmode;if(settings.hideButton){f+="&hideButton=true"}if(settings.fileDesc){f+="&fileDesc="+settings.fileDesc+"&fileExt="+settings.fileExt}if(settings.multi){f+="&multi=true"}if(settings.auto){f+="&auto=true"}if(settings.sizeLimit){f+="&sizeLimit="+settings.sizeLimit}if(settings.simUploadLimit){f+="&simUploadLimit="+settings.simUploadLimit}if(settings.checkScript){f+="&checkScript="+settings.checkScript}if(settings.fileDataName){f+="&fileDataName="+settings.fileDataName}if(a.browser.msie){flashElement='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+settings.width+'" height="'+settings.height+'" id="'+a(this).attr("id")+'Uploader" class="fileUploaderBtn"><param name="movie" value="'+settings.uploader+"?fileUploadID="+a(this).attr("id")+f+'" /><param name="quality" value="high" /><param name="wmode" value="'+settings.wmode+'" /><param name="allowScriptAccess" value="'+settings.scriptAccess+'"><param name="swfversion" value="9.0.0.0" /></object>'}else{flashElement='<embed src="'+settings.uploader+"?fileUploadID="+a(this).attr("id")+f+'" quality="high" width="'+settings.width+'" height="'+settings.height+'" id="'+a(this).attr("id")+'Uploader" class="fileUploaderBtn" name="'+a(this).attr("id")+'Uploader" allowScriptAccess="'+settings.scriptAccess+'" wmode="'+settings.wmode+'" type="application/x-shockwave-flash" />'}if(settings.onInit()!==false){a(this).css("display","none");if(a.browser.msie){a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');document.getElementById(a(this).attr("id")+"Uploader").outerHTML=flashElement}else{a(this).after(flashElement)}a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="fileUploadQueue"></div>')}a(this).bind("rfuSelect",{action:settings.onSelect},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}a("#"+a(this).attr("id")+"Queue").append('<div id="'+a(this).attr("id")+h+'" class="fileUploadQueueItem"><div class="cancel"><a href="javascript:$(\'#'+a(this).attr("id")+"').fileUploadCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage">&nbsp;</span><div class="fileUploadProgress" style="width: 100%;"><div id="'+a(this).attr("id")+h+'ProgressBar" class="fileUploadProgressBar" style="width: 1px; height: 3px;"></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("rfuSelectOnce",settings.onSelectOnce)}a(this).bind("rfuCheckExist",{action:settings.onCheck},function(m,l,j,k,o){var i=new Object();i.folder=d+k;for(var h in j){i[h]=j[h];if(o){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,j,k,o)!==false){var q=confirm("Do you want to replace the file '"+r[p]+"'?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("rfuCancel",{action:settings.onCancel},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h).fadeOut(250,function(){a("#"+a(this).attr("id")+h).remove()})}});a(this).bind("rfuClearQueue",{action:settings.onClearQueue},function(){if(event.data.action()!==false){a("#"+a(this).attr("id")+"Queue").contents().fadeOut(250,function(){a("#"+a(this).attr("id")+"Queue").empty()})}});a(this).bind("rfuError",{action:settings.onError},function(k,h,j,i){if(k.data.action(k,h,j,i)!==false){a("#"+a(this).attr("id")+h+" .fileName").text(i.type+" Error - "+j.name);a("#"+a(this).attr("id")+h).css({border:"3px solid #FBCBBC","background-color":"#FDE5DD"})}});a(this).bind("rfuProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("rfuComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h).fadeOut(250,function(){a("#"+a(this).attr("id")+h).remove()});a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed")}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("rfuAllComplete",settings.onAllComplete)}})}},fileUploadSettings:function(b,c){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").updateSettings(b,c)})},fileUploadStart:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},fileUploadCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b)})},fileUploadClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue()})}})})(jQuery)};
<script type="text/javascript">     
    $(window).load(     
    function () {     
        $("#fileuploader").fileUpload({     
            'uploader': '/Scripts/uploader.swf',     
            'cancelImg': '/Images/cancel.png',     
            'buttonText': 'Select File(s)',     
            'script': 'Chat/FileUpload',      
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png;*.rar;*.zip',     
            'multi': true,     
            'auto': true,     
            'onComplete': function (event, id, fileObj, response, data) {     
                response = $.parseJSON(response);     
               if(response.Status != null) {     
                   alert(response.Status);     
               }     
            }     
        });     
    }     
);     
    </script>     

<div id="fileuploader"></div>