";$.each(i,function(i,a){l+="
物体:"+a.label+"
可信度:"+a.score+"
"}),$("#result-img").append(l)})}),finput.on("filebatchuploadsuccess",function(e,i,l,a){i.form,i.files,i.extra;var t=i.response;i.reader;$(".file-upload-tips").hide(),$("#result-img").html(""),$(".file-preview-area").hide(),$(".file-footer-caption").each(function(){$(this).html($(this).html().replace(/\(/,"").replace(/\)/,"").replace(/\
/,""))}),1==t.success&&$.each(t.data.politicians,function(e,i){$.each(i,function(e,i){$("#result-img").append("
")})})}),$(".fileinput-upload-button >span").text("上传识别"),$("#file-zh").on("filecleared",function(e){$(".file-upload-tips").show(),$(".num-data").addClass("hide"),$(".imgnum").text("0"),$("#result-img").html(""),$(".file-caption-main").removeClass("file-caption-main-bottom"),$(".btn-file .hidden-xs").html("选择文件")})}),$.fn.serializeObject=function(){var e={},i=this.serializeArray();return $.each(i,function(){void 0!==e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""}),e},$(".btn-file .hidden-xs").html("选择文件"),$("#uploadAll").click(function(){$(".fileinput-upload-button").trigger("click")}),setInterval(function(){$(".file-preview-thumbnails samp").length<2&&($(".file-upload-tips").show(),$(".file-caption-main").removeClass("file-caption-main-bottom"),$(".btn-file .hidden-xs").html("选择文件"),$("#result-img").html(""))},1e3),$("#autoupload").on("change",function(){$(this).is(":checked")?($("#uploadAll").attr("disabled","disabled"),$(this).siblings(".icon-check").removeClass("uncheck")):($("#uploadAll").removeAttr("disabled"),$(this).siblings(".icon-check").addClass("uncheck"))})