Advertisement
Advertisement

新足迹

 找回密码
 注册
新足迹 门户 IT专业论坛 查看内容

Node.JS 返回value 到function 外

2016-6-19 16:43| 发布者: DBOY123 | 查看: 4725| 原文链接

需要引用下面的reply 值到function 外?

reply 返回是value of the key, get()返回是boolean


client.get("missingkey", function(err, reply) {
    // reply is null when the key is missing
    console.log(reply);
});

有人帮帮忙吗?
Advertisement
Advertisement


Advertisement
Advertisement
返回顶部