在jQuery中,我可以通过指定参数data
附加GET参数:添加GET参数q.io.xhr
// 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参数?
'req.setRequestData({FOO: '栏',你好: '世界'});'? – timidboy
http://jsfiddle.net/LV6pX/ – werehuman
@werehuman setRequestData在q.io.xhr上不可用。阅读文档:http://demo.qooxdoo.org/2.0.2/website-api/#Xhr – Jaffer