gpt4 book ai didi

jquery - ajax提交上传进度没有响应

转载 作者:行者123 更新时间:2023-12-01 04:17:44 24 4
gpt4 key购买 nike

我对 jQuery.Form$(a).AjaxSubmit 的 UploadProgress 选项有疑问。这是我的代码:

$("#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;
}
}
});

警报永远不会出现。我需要进度条事件。

最佳答案

将ajaxForm插件更新到最新版本。问题就会解决。

插件网址:http://malsup.com/jquery/form/

关于jquery - ajax提交上传进度没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13402624/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com