1、向后台传可变的参数
<input type="file" name="file_upload" id="file_upload" />
$
(
function
(
)
{
$
(
"#file_upload"
)
.
uploadify
(
{
'formData'
:
{
'someKey'
:
'someValue'
,
'someOtherKey'
:
1
}
,
'swf'
:
'/uploadify/uploadify.swf'
,
'uploader'
:
'/uploadify/uploadify.php'
}
)
;
}
)
;
方法:
使用Method settings
调后台时写:
$('#file_upload').uploadify('settings','formData',{'someKey':'otherValue','someOtherKey':2});