ajax发送请求给服务器,服务器如何解析params,后台为C++代码
前台代码如下:
var data = $.ajax({
type: 'POST',
url: './json/worker.json',
data:{"worker_id":worker_id},
dataType: 'json',
async:false
});
后台处理代码为.cc文件,函数为handlewokerJsonRequest(const HttpRequest& request,HttpResponse *response){
。。。
};
请问如何解析request,从而得到worker_id这个参数
非常感谢,网上都是java 的代码,C++/C的很少