摘要:
错误是:对象是一个数组,使用JSONArray代替 错误代码为:JSONObject json=JSONObject.fromObject(usertypeList); 正确代码为:JSONArray json=JSONArray.fromObject(usertypeList); 注意:JSONO 阅读全文
摘要:
1.将json字符串转换为java对象 JSONObject obj = new JSONObject().fromObject(jsonStr);//将json字符串转换为json对象 Person jb = (Person)JSONObject.toBean(obj,Person.class); 阅读全文
摘要:
1.jQuery.post( url, [data], [callback], [type] ) :使用POST方式来进行异步请求 参数: url (String) : 发送请求的URL地址. data (Map) : (可选) 要发送给服务器的数据,以 Key/value 的键值对形式表示。 ca 阅读全文