springMVC接受json并打开新页面
摘要:背景:框架中,两个web工程A,B,我的B工程开发了一个对外action接口,A来连,要实现的功能是,A的页面发起一个action请求,到达B的springmvc,通过验证后,打开一个B工程新的tab的新窗口 方案:B用form提交json字符串。A后台用String param(不用@Reques
阅读全文
posted @
2018-11-28 18:34
pu20065226
阅读(681)
推荐(1) 编辑
java json字符串与对象转换
摘要:下载引入包gson-2.0.jar 1.字符转数据 2.构造json对象 for (int colnum = 1; colnum <= 2; colnum++) { // insert the cell(columnName/columnValue) into the row Row.addProp
阅读全文
posted @
2018-10-17 16:46
pu20065226
阅读(171)
推荐(0) 编辑
js中json字符串与对象的转换及是否为空
摘要:1.json对象(数组)转字符串 2.json字符串转对象JSON.parse(jsonstr); 3.判断json是否为空 var a={aa:111,bb:222}; if(JSON.stringify(a) != "{}") 或者利用 Object.keys(a).length>0 json数
阅读全文
posted @
2018-10-17 15:57
pu20065226
阅读(614)
推荐(0) 编辑