Angularjs 为什么Angular突然停止了本地工作?

Angularjs 为什么Angular突然停止了本地工作?,angularjs,Angularjs,我正在本地试验一个非常基本的角度页面。我可以通过运行http服务器在我的Windows pc上实现这一点。然而,这项工作今天停止了。我已经返回并将我的页面缩减为极其基本的hello世界级代码,但我仍然无法使用任何角度功能 有人知道为什么下一页不会输出一个基本的数学问题,而不是花括号吗?正如我提到的,这在昨天很有效 app.js: var app = angular.module('store', []); index.html: <!DOCTYPE html> <html n

我正在本地试验一个非常基本的角度页面。我可以通过运行http服务器在我的Windows pc上实现这一点。然而,这项工作今天停止了。我已经返回并将我的页面缩减为极其基本的hello世界级代码,但我仍然无法使用任何角度功能

有人知道为什么下一页不会输出一个基本的数学问题,而不是花括号吗?正如我提到的,这在昨天很有效

app.js:

var app = angular.module('store', []);
index.html:

<!DOCTYPE html>
<html ng-app="store">
    <head>
        <link rel="stylesheet" type="text/css" href="node_modules/bootstrap/dist/css/bootstrap.min.css" />
    </head>
    <body>
        <script type="text/javascript" src="app.js"></script>
        <script type="text/javascript" src="node_modules/angular/angular.min.js"></script>
        <p>{{"Hello" + " you"}}, I am {{2017 - 1985}}.</p>
    </body>
</html>

在调用app.js之前,需要先调用Angular。JavaScript按顺序执行。

在调用app.js之前,需要先调用Angular。JavaScript按顺序执行。

如果更改角度版本会发生什么?这一个对我有用,如果它没有插入花括号,你应该有一个浏览器错误。什么是浏览器错误?@BenBeck-我添加了浏览器错误。谢谢你给我指出那个方向。@WEFX,我会尝试下面的答案。您得到的错误非常普遍。这可能是您的脚本顺序。如果更改角度版本会发生什么?这一个对我有用,如果它没有插入花括号,你应该有一个浏览器错误。什么是浏览器错误?@BenBeck-我添加了浏览器错误。谢谢你给我指出那个方向。@WEFX,我会尝试下面的答案。您得到的错误非常普遍。这可能是您的脚本顺序。我假设他们还希望app.js位于主体的末尾,以便在尝试使用之前加载主体/模块/任何内容。我假设他们还希望app.js位于主体的末尾,以便在尝试使用之前加载主体/模块/任何内容。
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.1/$injector/modulerr?p0=store&p1=Error%3A%2…ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.6.1%2Fangular.min.js%3A21%3A332)
at angular.js:38
at angular.js:4759
at q (angular.js:357)
at g (angular.js:4720)
at eb (angular.js:4642)
at c (angular.js:1838)
at Mc (angular.js:1859)
at pe (angular.js:1744)
at angular.js:32977
at HTMLDocument.b (angular.js:3314)
(anonymous) @ angular.js:38
(anonymous) @ angular.js:4759
q @ angular.js:357
g @ angular.js:4720
eb @ angular.js:4642
c @ angular.js:1838
Mc @ angular.js:1859
pe @ angular.js:1744
(anonymous) @ angular.js:32977
b @ angular.js:3314