刷新页面 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 {
。。。。。。
}
});