확인을 발견, 그래서 ....스크립트 태그를 읽을 수 없습니까? 자바 스크립트, 각도. 오류 파일은
GET file:///C:/bower_components/angular/angular.min.js net::ERR_FILE_NOT_FOUND
index.html:19 GET file:///C:/bower_components/angular/angular-route.min.js net::ERR_FILE_NOT_FOUND
index.html:20 GET file:///C:/something.js net::ERR_FILE_NOT_FOUND
index.html:21 GET file:///C:/controller.js net::ERR_FILE_NOT_FOUND
나는 문제가 내 스크립트 태그임을 확신합니다 .... 내 코드에 다음과 같은 오류가 점점 오전하지
<!DOCTYPE html>
<html ng-app="MyApp">
<head>
<meta charset="utf-8">
<title></title>
<base href="/" />
</head>
<body ng-controller="MainController as main">
<a ui-sref="Page1">Page 1</a> | <a ui-sref="Page2">Page 2</a> | <a ui-sref="Nowhere">Nowhere</a>
<hr />
$state.current.templateUrl = {{main.$state.current.templateUrl}}
<hr />
<ui-view></ui-view>
<script src="/bower_components/angular/angular.min.js"></script>
<script src="/bower_components/angular/angular-route.min.js"></script>
<script src="/something.js"></script>
<script src="/controller.js"></script>
</body>
</html>
정확하게 여기 무엇이 잘못되었는지 이해하지 못하겠습니까? 제 선생님이 문법이 정확하다고 말하면서 저는 매우 혼란 스럽습니다.
HTML 파일을 디스크에서 브라우저로 직접로드하고 있습니까? 웹 서버를 사용하고 있지 않습니까? – Dai
웹 서버를 사용하고 있었지만 서버에서 작동하지 않아서 콘솔에 익숙해 져서 오류가 발생했는지 확인했습니다. 문서의 내 링크가 작동하지 않으며 클릭 할 수 없습니다. –
'hello world' 앱보다 복잡한 것을 개발하는 것은'file : //'을 사용해서는 안된다. 나는 과장하지만 실제 개발자는 웹 서버를 사용한다. –