gpt4 book ai didi

jquery - 想要在我的用户配置文件表单中实现ajax文件上传以进行图片上传

转载 作者:行者123 更新时间:2023-12-01 06:07:48 25 4
gpt4 key购买 nike

实现ajax上传,想知道如何在我的代码中实现它...我搜索了很多上传者不知道如何在我的代码中实现它。

$('#message_form').html('个人资料信息编辑'+ ''+ ''+ '名字:'+ '姓氏:'+ '电子邮件:'+ '照片:'+ ''+ ''+ “吉布斯拥有:”+ ” );

MessageWindow.show();
$(".cancel").click(function() {

MessageWindow.hide();
});
$(".submit").click(function() {
ajaxFileUpload();
var dataString = $("#myform").serialize();
$.ajax({
type: "POST",
url: YAPI.baseUrl+"updateuser.php",
data: dataString,
success: function(data){
response = eval('('+data+')');
alert(response.message);
YAPI.execute({command:'getuser',userid:App.currentUser.getData('userid')},
function(response,data){
//App.currentUser.setData();
}
);

MessageWindow.hide();
}
});
return false;
});

最佳答案

如果可能,尝试使用 jQuery 插件,例如 Uploadify。另外,请检查此以获取更多信息:
Asynchronous file upload (AJAX file upload) using jsp and javascript

关于jquery - 想要在我的用户配置文件表单中实现ajax文件上传以进行图片上传,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3667354/

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