내가 nodejs에서 다음과 같은 기능을 가지고, res.execSync 여러 매개 변수를 취합니다 https://github.com/xdenser/node-firebird-libfbclient함수에 인수를 전달하는 방법은 무엇입니까? 여기에 설명 된대로
function execSync(param1, param2, ..., paramN);
param1, param2, ..., paramN - parameters of prepared statement in the same order as in SQL and with appropriate types.
function test(sql, callback)
{
var args = Array.prototype.slice.call(arguments).splice(2);
res.execSync(args);
}
test('test', function() {}, "param1", "param2", "param3");
오류 : 기대 문자열을 인수 # 1로.
어떻게 해결할 수 있습니까?