时间:2021-07-01 10:21:17 帮助过:10人阅读
function onSubmita()
{
var args = {
"resolution.cif":$("input[name='resolution.cif']").val(),
"resolution.fourCif":$("input[name='resolution.fourCif']").val(),
"resolution.HeightP":$("input[name='resolution.HeightP']").val(),
"resolution.widthP":$("input[name='resolution.widthP']").val(),
"resolution.vga":$("input[name='resolution.vga']").val()
};
if (confirm("你确认要提交对码流设置进行的修改吗 ?")) {
$.post("<%=basePath%>old/ResolutionAction-resolution.action?type=set",args, function(data) {
alert(data);
});
}
}
服务端
执行action 并传回返回值
代码如下:
// 。。。。。 action 方法
getResponse().setContentType("text/html;charset=UTF-8");
getResponse().getWriter().print(“执行成功!”);