解构如何运用的解构–报错 throw new TypeError('Router.use()
对于报错throw new TypeError('Router.use() requires a middleware function but got a ’ + gettype(fn))
是因为你没有在最后某个文件中写:
module.exports = router;
解构如何运用的解构–报错 throw new TypeError('Router.use()
对于报错throw new TypeError('Router.use() requires a middleware function but got a ’ + gettype(fn))
是因为你没有在最后某个文件中写:
module.exports = router;