怎么样才能不报不能识别setTimeOut错误
为什么不能识别我的代码里面的setTimeOut?why,why,why var timers = require(“timers”);
var redis = require(“redis”), client = redis.createClient();
client.on(“error”, function (err) { console.log("error event - " + client.host + “:” + client.port + " - " + err); }); console.log(“aaa.”);
var id = timers.setTimeOut(function (){ client.set(“string key”, “string val”, redis.print); console.log(“hhhhh.”); client.quit(); console.log(“ggg.”); },2000);
1 回复
是我写错了,应该是setTimeout