how to print the data from post request on console

前端 未结 6 1006
忘掉有多难
忘掉有多难 2021-02-18 16:07

I am trying to print the post data on my console


app.js

var express = require(\'express\')
 , http = require(\'http\');

var app         


        
6条回答
  •  执笔经年
    2021-02-18 16:39

    Use built in function "util" to print any type of json data in express js

    var util = require("util");
    console.log(util.inspect(myObject, {showHidden: false, depth: null}));
    

提交回复
热议问题