-2
我有一个从Redis的商店中移除元素的功能:为什么不工作回调?
function removeDevice(identificator, callback){
client.srem('devices', identificator, function(err) {
callback(true);
});
}
我称之为:
removeDevice(function (data) {
res.json(data);
});
它给我的错误:
类型错误:回调不上的功能line:
callback(true);