Uploadify/jquery_update_js.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//下面是三个参数的 上传控件ID 返回地址ID
function StartUploadify(kj, fkj) {
$("#" + kj).uploadify({
'uploader': '/Uploadify/uploadify2.swf',
'cancelImg': '/Uploadify/images/cancel.png',
'buttonText': 'Select Files',
'buttonImg': '/Uploadify/images/update.png',
'width': 38,
'height': 22,
'script': '/ajax/Upload.ashx',
'folder': 'uploads',
'fileDesc': '',
'fileExt': '*',
'sizeLimit': 1024 * 1024 * 1024,
'simUploadLimit': 10,
'multi': false,/*是否允许上传多文件*/
'auto': true,
'onSelect': function (a, b, c) { /*选择文件上传时可以禁用某些按钮*/ },
'onComplete': function (a, b, c, d, e) { SetLi_UpdateFiles(c, fkj); },
'onAllComplete': function (a, b) {
enabledSaveButton(true);
},
'onCancel': function (a, b, c, d, e) { },
'onError': function (a, b, c, d, e) {
setTimeout("$('#" + kj + "').uploadifyCancel('" + b + "')", 2000);
}
});
}
function StartUploadify_yzm(kj, fkj) {
$("#" + kj).uploadify({
'uploader': '/Uploadify/uploadify2.swf',
'cancelImg': '/Uploadify/images/cancel.png',
'buttonText': 'Select Files',
'buttonImg': '/Uploadify/images/update.png',
'width': 38,
'height': 22,
'script': '/ajax/Upload.ashx?yzm=true',
'folder': 'uploads',
'fileDesc': '',
'fileExt': '*',
'sizeLimit': 1024 * 1024 * 1024,
'simUploadLimit': 10,
'multi': false,/*是否允许上传多文件*/
'auto': true,
'onSelect': function (a, b, c) { /*选择文件上传时可以禁用某些按钮*/ },
'onComplete': function (a, b, c, d, e) { SetLi_UpdateFiles(c, fkj); },
'onAllComplete': function (a, b) {
enabledSaveButton(true);
},
'onCancel': function (a, b, c, d, e) { },
'onError': function (a, b, c, d, e) {
setTimeout("$('#" + kj + "').uploadifyCancel('" + b + "')", 2000);
}
});
}
function SetLi_UpdateFiles(objFile, fkj) {
var vr = objFile.filePath;
vr = "" + vr;
$("#" + fkj).val(vr);
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。