相关疑难解决方法(0)

如何将多个参数传递给Prototype中的onSuccess函数?

我是使用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函数.怎么可能.谢谢你的帮助.

javascript ajax call prototypejs

4
推荐指数
1
解决办法
8538
查看次数

标签 统计

ajax ×1

call ×1

javascript ×1

prototypejs ×1