{"inframe":false,"title":"响应Ajax","hidden":false,"roles":{"demo":1,"dev":1},"children":[{"configs":{"serverScript":"var result, data = app.get(); //获取request parameter，request attribute和session attributes值组成的对象。\n\n//前台上传的参数无论是什么类型，传到后台后都是字符串\nresult = {\n  str: data.str, //等于request.getParameter('str')，转成JS字符串String(data.str)，js转Java字符串SysUtil.javaString(jsString)\n  num: data.num, //parseFloat(data.num)可转成js数值，Double.parseDouble(data.num)或SysUtil.javaDouble可转成java数值\n  object: Wb.decode(data.object), //解码成对象\n  array: Wb.decode(data.array), //解码成数组\n  date: data.date //Wb.strToDate(data.date)可转成js日期，DateUtil.strToDate(data.date)可转成java日期\n};\napp.send(result);","itemId":"module"},"children":[],"expanded":false,"type":"module"}],"pageLink":"","iconCls":""}