解構如何運用的解構–報錯 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;