MongooseError:回调必须是一个函数,得到了[object Object] 在新的MongooseError(C:\ Users \ Administrator \ libraryapi \ node_modules \ mongoose \ lib \ error \ mongooseError.js:10:11) 在Function.Model。$ handleCallbackError(C:\ Users \ Administrator \ libraryapi \ node_modules \ mongoose \ lib \ model.js:4604:11) 在Function.Model.findByIdAndUpdate(C:\ Users \ Administrator \ libraryapi \ node_modules \ mongoose \ lib \ model.js:2561:19) 在router.put(C:\ Users \ Administrator \ libraryapi \ routes \ librarys.js:86:41) 在Layer.handle上[作为handle_request](C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ layer.js:95:5) 在下一个(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ route.js:137:13) 在Route.dispatch(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ route.js:112:3) 在Layer.handle上[作为handle_request](C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ layer.js:95:5) 在C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:281:22 在参数上(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:354:14) 在参数上(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:365:14) 在Function.process_params(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:410:3) 在下一个(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:275:10) 在Function.handle(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:174:3) 在路由器上(C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ index.js:47:12) 在Layer.handle上[作为handle_request](C:\ Users \ Administrator \ libraryapi \ node_modules \ express \ lib \ router \ layer.js:95:5) 消息:“回调必须是一个函数,得到了[object Object]”, 名称:'MongooseError'}