87,921
社区成员
发帖
与我相关
我的任务
分享
function ajax_request(url, data, callback, context)
{
var request = ajax_create_request(context);
var async = typeof(callback) == 'function';
if(async) request.obj.onreadystatechange = function()
{
if(request.obj.readyState == 4)
callback(new ajax_response(request));
}
request.obj.open('POST', url, async);
request.obj.send(data);