function upfile(){
var fd = new FormData();
fd.append("fd",recorder.getBlob());
console.log(fd);
console.log(recorder.getBlob());
if("undefined" != typeof(fd) && fd != null && fd != ""){
$.ajax({
url:'test/testvideo.shtml',
type:'POST',
data:fd,
async: false,
cache: false,
contentType: false, //不设置内容类型
processData: false, //不处理数据
success:function(data){
var obj = eval('(' + data + ')');
alert(obj.onebest);
},
error:function(){
alert("上传失败!");
}
})
}else {
alert("选择的文件无效!请重新选择");
}
}