简体   繁体   English

找不到min.js文件,并且它们的类型针对text / html

[英]min.js files are not found and their type present as to text/html

my index file is: 我的索引文件是:

<!DOCTYPE html>
<html lang="en" ng-app="myApp">
<head>
    <meta charset="UTF-8">
    <title>Macabi Tel Aviv</title>
    <script src="lib/angular/angular.min.js"></script>
    <script src="lib/angular/angular-route.min.js"></script>
    <script src="js/app.js"></script>
    <script src="js/controllers.js"></script>

    <link rel="stylesheet" href="css/style.css">
</head>
<body>

<div class="main" ng-view>


</div>

</body>
</html>

When im trying to run the code throgh xampp i see in the network (while debugging) that the min.js files are not found and their type present as to text/html.... why? 当我尝试运行代码xampp时,我在网络上(调试时)看到未找到min.js文件,并且它们的类型与text / html有关。...为什么?

ps in the controller files i use routing 控制器文件中的ps我使用路由

Try using this 试试这个

<script type="text/javascript" src="lib/angular/angular.min.js"></script>

But if the file is not being find check the route, maybe it should start with "/", depending if the route shoul be relative or not 但是,如果找不到该文件,请检查路由,也许应该以“ /”开头,具体取决于路由是否是相对的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM