我想重新使用一個Request.JSON對象,但我不知道如何。我正在尋找類似下面的例子:MooTools - 重用請求對象
// In initialize/constructor
this.request = new Request.JSON({
method : 'get'
});
// Elsewhere
this.request.setOptions({
url : 'http://...',
onSuccess : onSuccess,
onFailure : onFailure
}).send();