如何计算用户电子邮件的登录尝试。我想将它们存储在会话中。我尝试:
req.session[req.body.email] = req.session[req.body.email] + 1;
但undefined + 1 = NaN
我该怎么做?
如何计算用户电子邮件的登录尝试。我想将它们存储在会话中。我尝试:
req.session[req.body.email] = req.session[req.body.email] + 1;
但undefined + 1 = NaN
我该怎么做?