Huploadify icon indicating copy to clipboard operation
Huploadify copied to clipboard

动态传参问题

Open chazex opened this issue 5 years ago • 0 comments

你好, 有一处用法不明白,如何才能动态传参呢? 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); },

chazex avatar Feb 07 '20 08:02 chazex