CNode

怎么样才能不报不能识别setTimeOut错误

Eeyauwag发布于13 年前最后回复13 年前1 回复3847 浏览0 收藏

为什么不能识别我的代码里面的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)

E
eyauwag#1·13 年前

是我写错了,应该是setTimeout

参与回复
登录后即可参与回复。登录