我是使用原型库的初学者。我想知道我们如何将多个参数传递给 Prototype 中的 onSuccess/onFailure 函数?例如:-
new Ajax.Request('testurl',{
method: 'post',
parameters: {param1:"A", param2:"B", param3:"C"},
onSuccess: fnSccs,
onFailure: fnFail
})
在我的成功函数 fnSccs 中:-
function fnSccs(response)
{
alert(response.responseText);
}
我想将一个新参数传递给 fnSccs 函数。这怎么可能。谢谢你的帮助。