1:前台往后台送值
var param = "&ployId="+ployId+"&smsTamplateContent="+encodeURI(encodeURI(smsTamplateContent));
2:后台接收
import java.net.URLDecoder;
String smsTamplateContent = HttpUtil.getAsString(request, "smsTamplateContent");
smsTamplateContent = URLDecoder.decode(smsTamplateContent , "utf-8");

本文介绍了一个简单的前后台数据交互过程,包括前台如何将参数编码并通过HTTP请求发送到后台,以及后台如何对接收到的数据进行解码处理。
433

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



