我在对的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#。
我该如何解决这个问题?