将GET参数添加到q.io.xhr

时间:2012-09-05 10:46:40

标签: javascript qooxdoo

在jQuery中,我可以通过指定参数data附加GET参数:

// sends request to http://example.com?foo=bar&hello=world
$.ajax({
    url: 'http://example.com',
    method: 'get',
    data: {foo: 'bar', hello: 'world'}
})

但是我在qooxdoo documentation中看不到这样的选项。当然我可以手动将参数编码到url中,但我无法相信这么大的javascript框架无法做到这一点。

也许我错了,qooxdoo API以某种方式接受GET参数?

1 个答案:

答案 0 :(得分:0)

目前我们不支持此功能,因为我们希望XHR实现非常接近规范[1],您可以在API文档[2]中看到。但这可能是将来添加的一个很好的功能!