오류관리
[jQuery] Failed to load resource : the server responded with a status
k9e4h
2016. 4. 11. 20:38
오류
Failed to load resource : the server responded with a status http://127.0.0.1:53265/jquery-1.7.2.js of 404 (Not Found)
오류 상황
canvas 예제를 사용하는데 canvas가 뜨지 않았다
오류 원인
jquery 링크 잘못걸어줘서..
복붙한 source에는 <script type='text/javascript' src = 'jquery-1.7.2.js' ></script> 로 되어있었다.
하지만 나는 jquery 를 다운 받은 적이 없다는 점!!
그러니 당연히 Not found가 뜨지
404가 뜬다면 리소스가 있는지 부터 확인하자!
오류 해결
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
요렇게 내가 하던 방식으로 CDN으로 수정하니까 해결!
※ CDN : Contents Delivery Network
반응형