uploadify参数怎么封装
1个回答
展开全部
$(function() {
$("#file_upload").uploadify({
'formData' : {'someKey' : 'someValue', 'someOtherKey' : 1},
'swf' : '/uploadify/uploadify.swf',
'uploader' : '/uploadify/uploadify.php',
'onUploadStart' : function(file) {
$("#file_upload").uploadify("settings", "someOtherKey", 2);
}
});
});
属性是formData
$("#file_upload").uploadify("settings", "formData", {'someKey' : 'someValue', 'someOtherKey' : 1});
还要加上'method':'get'
否则也没有用。
$("#file_upload").uploadify({
'formData' : {'someKey' : 'someValue', 'someOtherKey' : 1},
'swf' : '/uploadify/uploadify.swf',
'uploader' : '/uploadify/uploadify.php',
'onUploadStart' : function(file) {
$("#file_upload").uploadify("settings", "someOtherKey", 2);
}
});
});
属性是formData
$("#file_upload").uploadify("settings", "formData", {'someKey' : 'someValue', 'someOtherKey' : 1});
还要加上'method':'get'
否则也没有用。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询