Angularjs 在网络选项卡和console.log中未显示任何内容(“发布成功”)

Angularjs 在网络选项卡和console.log中未显示任何内容(“发布成功”),angularjs,node.js,console.log,Angularjs,Node.js,Console.log,前端 customer.controller("new_info", function($scope, $routeParams,$http) { $scope.customer = {}; $scope.register = function () { $http.post('localhost:4000/new_info', $scope.customer).then( function (response) {

前端

customer.controller("new_info", 
  function($scope, $routeParams,$http)
  {    
    $scope.customer = {};
    $scope.register = function () {
      $http.post('localhost:4000/new_info', $scope.customer).then(
        function (response) { 
          console.log("posted successfully");
        }
    );
  }
});
后端

 app.post('/new_info',(req,res)=>{ console.log(req.body); });

谁来帮帮我这里有什么问题?您希望发生什么,以及正在发生什么?我想在点击提交按钮后在控制台窗口中显示这些内容。当我点击提交按钮时,网络选项卡和控制台窗口中没有显示任何内容。你能用“提交按钮”发布你的模板代码吗。