0
我學習node_redis,在例子/ simple.js,有下面的代碼:
1 client.hset("hash key", "hashtest 1", "some value", redis.print);
2 client.hset(["hash key", "hashtest 2", "some other value"], redis.print);
3 client.hkeys("hash key", function (err, replies) {
4 console.log(replies.length + " replies:");
5 replies.forEach(function (reply, i) {
...
我感到困惑的是:
爲什麼3號線有兩個參數「(ERR ,回覆)「,設計師是否定義了多少個參數?
還是你想引導我讀什麼書或其他的東西來理解他們? 提前謝謝!
此致
PengCZ
謝謝,這是我所需要的 – abelard2008