好久没写文章了,我也心痒痒的,嘿嘿。现在写一篇文章。
好了 最近调查的任务颇多,也没来得及写下来。
好了 开始
1. 我今天要说的,大家可能已经知道。怎么用JQuery访问后台,交互的方式就是JSon,对于拿哥来说,这个比较简单,嘿嘿
,在这里也瞥我啊,自己会就会把
2.给出Server端的code
List<Person> persons = personService.getPersonList();
response.setContentType("text/html;charset=utf-8");
response.setCharacterEncoding("utf-8");
PrintWriter pw= response.getWriter();
JSONArray json_ps = JSONArray.fromObject(persons);
pw.write(json_ps.toString());
这个是抄袭过来的。我本身的目的不是后台
3.JQuery 代码
$.post(
'tableoperation.htm',
{},
function (data) {
console.log(data.column);
}
);
好了。
var person = '{"id":5,"name":"aa","age":25,"high":155.00}';
String personJ = request.getParameter("personStr");
JSONObject jsonObject = JSONObject.fromObject(personJ);
Person person = (Person)JSONObject.toBean(jsonObject,Person.class);
分享到:
相关推荐
As well as focusing on client-side JavaScript, you will also learn how to work with the Browser Object Model, the Document Object Model (DOM), how to use XML and JSON as well as communicate with ...
As well as focusing on client-side JavaScript, you will also learn how to work with the Browser Object Model, the Document Object Model (DOM), how to use XML and JSON as well as communicate with ...
Communicate with the web server to update your pages without reloading. Put your new skills right to work. Create a simple application step-by-step, using jQuery and jQuery UI widgets. Dive into ...
Communicate with MATLAB from Mathematica.zip
The book was written with the 1.3 series versions of jQuery and the 1.7 series versions of jQuery UI. These libraries generally remain backward compatible to a large degree. Version 1.0 of the ...
As the name implies A toolbox to communicate with EyeTribe trackers using Matlab.zip
C++ convenience class to communicate with a Matlab instance.
Set of simulink s-functions to communicate with ROS.zip
With Ajax, you communicate with the server behind the scenes, grab the data you want and display it instantly in a Web page — no page refreshes needed, no flickering in the browser, no ...
Articulating Design Decisions - Communicate with Stakeholders, Keep Your Sanity, and Deliver the Best User Experience
By following the numerous examples, you'll see how much your users benefit from this new class of web applications that manipulate the browser's DOM and communicate with the server to update the user...
learning to communicate with deep multi-agent reinforcement learning-附件资源
The OFS product (OPC Factory Server) is a multi-controller data server which is able to communicate with PLCs of the M580, Unity Momentum, TSX/PCX Premium, Quantum, M340, TSX Compact, TSX Micro, TSX ...
1、几个月前我发布过一篇关于Unity的串口通信问题,只是阐述了问题,但是没有什么好的解决方案。经过我几个对串口相关的Unity项目开发,也发现了几种解决方案。开发中遇到的一些问题都详细的描述出来。...
learning-to-communicate, 多Agent强化学习的学习与学习 基于的多agent增强学习学习方法研究杰克。Foerster ,Yannis M 。 Assael,Nando de Freitas,Shimon Whiteson 我们考虑在环境中使用多代理感知和行为的问题...
Often clients and servers communicate over a computer network on separate hardware, but both client and server may reside in the same system. A server host runs one or more server programs which ...
Improve your ability to develop, manage, and troubleshoot SQL Server solutions by learning how different components work “under the hood,” and how they communicate with each other. The detailed ...