当你在本地主机中的网络标签有错误的js文件,这通常是由于基本href在index.html
中没有正确设置,你可以try 设置标签为.
<head>
<meta charset="utf-8">
<title>AngularTourOfHeroes</title>
<base href="/"> <!-- this line should be set, you can ignore the others here -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>