UnhandledPromiseRejectionWarning:FetchError:请求http:// localhost:3000 / all / search_tracks失败,原因:套接字挂起

时间:2019-12-25 06:17:47

标签: node.js

        <!DOCTYPE html>
    <html>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
    <body>

        <div class="sidebar-pane" ng-app="MyApp" id="flight_info" ng-controller="new_controller">
            <table>
                <tr>
                    <td>Name</td>
                    <td>Age</td>
                </tr>
                <tr ng-repeat="p in people">
                    <td>{{p.name}}</td>
                    <td>{{p.Age}}</td>
                </tr>
            </table>
    </div>

    <script>
    var app = angular.module('MyApp', []);

    app.controller('new_controller', function($scope) {
        $scope.people= [{
                            name: "GeekAgashi",
                            Age: 12,
                            attended: 1
                        }, {
                            name: "GeekSatoshi",
                            Age: 16,
                            attended: 0
                        }, {
                            name: "GeekNakumato",
                            Age: 14,
                            attended: 1
                        }];
    });
    </script>

    </body>
    </html>

我的查询是: var searchData =等待获取(mainURL +'/ all / search_tracks',optionsForSearch)

0 个答案:

没有答案