Huploadify
Huploadify copied to clipboard
动态传参问题
你好,
有一处用法不明白,如何才能动态传参呢?
uplodify是通过setting方法实现的,咱们这个该怎么做呢
onUploadStart:function(){ console.log('开始上传'); var obj = { 'sample_type': document.getElementById('sample_type').value, 'sample_level': document.getElementById('sample_level').value, 'user': "{{ app.user.username }}" }; console.log(obj); // $("#file_upload_2").Huploadify("settings", "formData", obj); },