$("#ifrm").contents().find("form").ajaxSubmit({ data: { " + datos + " }, target: "#sbmt", forceSync: true, uploadProgress: function(event, position, total, percentComplete) { alert(percentComplete); }, success: function(html, status) {}, complete: function(xhr) { if (xhr.statusText == "OK") { eval(xhr.responseText) } else { msgbox("Error en el Formulario", "Se produjo un error al subir el archivo.", 1); return false; } }
});
具体看下面的解释,上面这段是搜索到的
uploadProgress: function(event, position, total, percentComplete){
console.debug(percentComplete); }, complete:function(xhr){
console.debug(xhr); }
主要是这两个方法uploadProgress为进度过程会不断执行的代码,complete上传完毕后的执行的代码,至于参数内容嘛,那就自己console.debug();显示查看