将json转换成struts参数的方法
加入对象为{name:’tom’,’class’:{className:’class1′},classMates:[{name:’lily’}]} struts2期待的格式是 name=tom&class.className=class1&classMates[0].name=lily function parseParam(param, key) { var paramStr = ""; if (param instanceof String || param instanceof Number || param instanceof Boolean ) { param
用户评论