Node.js ES6 Class unable to call class method from within class method when using Express.js
- 阅读更多 关于 Node.js ES6 Class unable to call class method from within class method when using Express.js
问题 Nb. This is driving me a little nuts and I've been around the houses a few times. However I'm fairly new to ES6 and JS as a whole and fully understand that a JS Class is not like that of Classes found in other languages and might be approaching this completely wrong. I'm running the following code which is using Express.js (v4.16.3) and body-parser (v1.18.2) on Node v8.9.0. app.post('/api/v1/user/update', urlencodedParser, user.update); The code calls 'urlencodedParser' which is acting as