刷新页面 reload
1) location = location ;
2) window.location.reload();
设置tablerow的属性:innerHTML对其他的空间好像无效
row.cells[0].innerHTML = "<img alt='' src='" + data.ImagePath + "' width='260' />";
异步上传文件方法:
$.ajaxFileUpload(
{
url: " ", //action方法的URL controller/action
secureuri: false,
fileElementId: file,
dataType: "json",
data: { imageText: description, imageID: id },
success: function (data, status) {
if (data.Success == true) {
。。。。。。
}
else {
。。。。。。
}
},
error: function (data, status, e) {
alert(e);
。。。。。。
}
}
);
异步上传文本:
if (b == 0) {
。。。。。。
}
else {
。。。。。。
}
});
本文详细介绍了如何实现异步上传文件,并通过页面刷新(reload)和设置table row属性来更新页面内容。同时,阐述了异步上传文本的方法,确保在不阻塞页面响应的情况下完成文件或数据的上传。
3880

被折叠的 条评论
为什么被折叠?



