我在對的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#。
我該如何解決這個問題?