{"inframe":false,"title":"输出至客户端","hidden":false,"roles":{"demo":1,"dev":1},"children":[{"configs":{"serverScript":"//var writer=response.getWriter();\n//writer.println('WebBuilder');\n//response.flushBuffer();\n//使用writer必须使flushBuffer，如果不立即提交系统会尝试获取response.getOutputStream()输出模块生成的客户端脚本，从而产生异常\n//同理response.getOutputStream().write完成之后也需要response.flushBuffer\n//通常输出数据可使用app.send(ServerScript)或WebUtil.send(Java)方法\n//使用writer.println和app.send提交的区别为前者通过writer可分批输出，后者为一次性提交（并具有gzip压缩等功能，效率高）\napp.send('Client Script'); //app.send(inputStream);app.send(bytes);app.send(object);","itemId":"module"},"children":[],"expanded":false,"type":"module"}],"pageLink":"","iconCls":""}