📜  上传 blob javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:47.050000             🧑  作者: Mango

代码示例1
var fd = new FormData();
fd.append('fname', 'test.wav');
fd.append('data', soundBlob);
$.ajax({
    type: 'POST',
    url: '/upload.php',
    data: fd,
    processData: false,
    contentType: false
}).done(function(data) {
       console.log(data);
});