- 注册时间
- 2014-8-9
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 27
- 精华
- 0
- 帖子
- 4

|
提交 datagrid1.load() 查询后如何返回值问题.
后台方法如下:
HashMap result = new HashMap();
result.put("a", "a");
result.put("b", "b");
result.put("c", "c");
result.put("d", "d");
String json = Test.JSON.Encode(result);
ServletOutputStream os = response.getOutputStream(); // 获取输出流
os.write(json.getBytes(Charset.forName("UTF-8"))); // 将json数据写入流中
os.flush();
页面如何获取返回值 显示到.
<input class="LABEL" type="text" id="a" name="a">
<input class="LABEL" type="text" id="b" name="b">
<input class="LABEL" type="text" id="c" name="c">
<input class="LABEL" type="text" id="d" name="d">
|
|