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