我想在模型中编写函数以获取用户ip,并希望存储在用户表中的节点js中具有列名ip_address。(使用express,mysql)
User.prototype.userip= function(req, res) { // here need access to IP address here }
node.js express
express ×1
node.js ×1