下拉按钮不起作用也不会消失

时间:2018-10-10 23:45:36

标签: jquery twitter-bootstrap button

我已经编码为使菜单按钮仅在xs模式下显示。它出现在每个屏幕尺寸上。而且它不会下降。如下所示,我得到错误代码。我只是一个初学者。我不能为此掩饰。我将不胜感激。

我的代码:

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}}

1 个答案:

答案 0 :(得分:0)

状态404(未找到)表示您传递了错误的资源URL,或者您没有在正确的位置放置资源,请尝试其他URL。菜单按钮中的错误可能是由于未加载资源引起的。

在最后一个错误中,您显然在传递JavaScript所需的HTML文件。