nodejs Route.get() requires callback functions but got a [object String]

前端 未结 4 461
故里飘歌
故里飘歌 2021-01-27 05:24

I\'m starting coding using nodejs with express. So i did this in my file test.js which is into my folder routes :

const express = require(\'express\');

const ro         


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-27 06:02

    Add "I'm a test" inside res.send(), I mean add " around that String.

提交回复
热议问题