function upload() {
var fileValue = $.trim($("#file").val());
var description = $.trim($("#description").val());
var pageuploadUrl = $.trim($("#pageuploadUrl").val());
var cfg = {"desc" : description, "webUrl" : pageuploadUrl};
$.ajax({
type : "POST",
url : "/SMS/activepage/addNewActivePage.action",
dataType : "json",
async : false,
contentType : 'application/json;charset=UTF-8',
data : JSON.stringify({"activePage" : cfg}),
success : function(data) {
// var rCode = response.code;
// $("#validate_code").val(rCode);
alert("添加成功");
window.location.href = "./../activepage/getActivePageLimit.action";
}
});
}
struts2 ajax
最新推荐文章于 2024-11-08 11:17:16 发布