Выпадающая кнопка не работает и не исчезает - PullRequest
0 голосов
/ 11 октября 2018

Я кодировал, чтобы кнопка моего меню появлялась только в режиме xs.Появляется при каждом размере экрана.Также это не выпадает.Я получаю коды ошибок при запуске, как показано ниже.Я просто новичок.Я не могу скрыть это ни волос.Буду признателен за любую помощь.

Мой код:

<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">

Считывание ошибок:

Failed to load resource: the server responded with a status of 404 (Not Found)
script.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
jquery-1.11.3.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.html:1 Refused to execute script from 'http://localhost:3000/CourseraProjects-master/module3solution/js/jquery-1.11.3.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
bootstrap.min.js:6 Uncaught TypeError: Cannot read property 'fn' of undefined
at bootstrap.min.js:6
at bootstrap.min.js:6
at bootstrap.min.js:6
at bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
script.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.html:1 Refused to execute script from 'http://localhost:3000/CourseraProjects-master/module3solution/js/script.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

1 Ответ

0 голосов
/ 11 октября 2018

Статус 404 Не найдено указывает, что вы передаете неправильный URL-адрес ресурсов или у вас нет ресурса в нужном месте, попробуйте другие URL-адреса.Ошибка в кнопке меню, вероятно, возникает из-за того, что ресурс не загружается.

В последней ошибке, очевидно, вы передаете файл HTML, когда ожидается JavaScript.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...