我的 javascript 脚本和引导文件没有加载。当我使用检查元素时,我得到的错误是这个附加到标题的文件是<head> <!-- Required meta tags always come first --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js"></script> <script src="https://kit.fontawesome.com/4ccd9cbb4a.js" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css"> <link href="css/styles.css" rel="stylesheet"> <title>Ristorante Con Fusion</title></head>我还尝试使用 cmd 使用 npm 命令安装脚本,并在我的机器上本地使用这些文件。但它没有产生结果,所以我尝试使用文件 https 文件包含格式。这是我的 Package.json 文件{ "name": "confusion", "version": "1.0.0", "description": "This is a website for Ristorante Con Fusion", "main": "index.html", "scripts": { "start": "npm run lite", "test": "echo \"Error: no test specified\" && exit 1", "lite": "lite-server" }, "author": "", "license": "ISC", "devDependencies": { "lite-server": "^2.5.4" }, "dependencies": { "bootstrap": "^4.0.0", "bootstrap-social": "^5.1.1", "font-awesome": "^4.7.0", "jquery": "^3.3.1", "popper.js": "^1.12.9" }}
添加回答
举报
0/150
提交
取消