【发布时间】:2010-06-29 12:12:54
【问题描述】:
我想重用一个 Request.JSON 对象,但我不知道怎么做。我正在寻找类似以下示例的内容:
// In initialize/constructor
this.request = new Request.JSON( {
method : 'get'
});
// Elsewhere
this.request.setOptions({
url : 'http://...',
onSuccess : onSuccess,
onFailure : onFailure
}).send();
【问题讨论】:
标签: mootools