uploadify 中文按钮2种解决方法

uploadify 版本: v2.1.0

方法1: 原文: http://www.debug.net/showtopic-502.html

此方法是修改flash文件,并将  jquery.uploadify.js 中的
if (settings.buttonText) { f.buttonText = escape(settings.buttonText) }
改为:
if (settings.buttonText) { f.buttonText = encodeURI(settings.buttonText) }

缺点: 按钮样式不太好控制 现在未想到解决方案, 但3.0以上版本可以有参数 buttonClass 选择
附上swf下载

uploadify.swf下载

方法2: v2.1.0版中有 'buttonImg' 属性,按钮文字是中文就行

 $("#uploadify" + no).uploadify({
                'uploader': '/Scripts/Plus/jquery.uploadify-v2.1.0/uploadify.swf?h='+ Date(),
                'script': '@Url.Action("Up", "aaa")?NoId=' + no + '&guid=' + guid,
                'cancelImg': '/Scripts/Plus/jquery.uploadify-v2.1.0/cancel.png',
                'folder': 'UploadFile',
                'queueID': 'fileQueue',
                'auto': true,
                'multi': false,
                'fileExt': '*.jpg;*.gif;*.bmp;*.png',
                'fileDesc': '请选择图片',
                'buttonImg': '/Scripts/Plus/jquery.uploadify-v2.1.0/upload.png',
                'wmode': 'transparent',
                'width': '84px',
                'height': '24px',

缺点: 按钮出现有延迟,和网速有关和swf大小有关,可将swf压缩减少延迟

有个问题:  'script': '@Url.Action("Up", "aaa")?NoId=' + no + '&guid=' + guid,

传2个参数的话 第二个参数无法获取,大牛有没有解决方法啥的

原文地址:https://www.cnblogs.com/lovewuhan/p/3135191.html