Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/457.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 当我尝试联机时,索引内容不显示_Javascript_Firebase - Fatal编程技术网

Javascript 当我尝试联机时,索引内容不显示

Javascript 当我尝试联机时,索引内容不显示,javascript,firebase,Javascript,Firebase,我成功地部署了网站(我知道,因为徽标图标显示在选项卡上,我仔细地遵循了步骤),但我的网站内容不会显示。这是我第一次这样做,我很确定这是件小事,但我已经被困了好几天了。它可能在我的index.html中。我用的是角度和火力。请帮忙 <!-- firebase hosting SDK --> <script src="/__/firebase/init.js"></script> <!-- Insert these scripts at the

我成功地部署了网站(我知道,因为徽标图标显示在选项卡上,我仔细地遵循了步骤),但我的网站内容不会显示。这是我第一次这样做,我很确定这是件小事,但我已经被困了好几天了。它可能在我的index.html中。我用的是角度和火力。请帮忙

  <!-- firebase hosting SDK -->
  <script src="/__/firebase/init.js"></script>
  <!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->
  <!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
  <script src="/__/firebase/7.0.0/firebase-app.js"></script>

  <!-- Add Firebase products that you want to use -->
  <script src="/__/firebase/7.0.0/firebase-firestore.js"></script>
  <script src="/__/firebase/7.0.0/firebase-storage.js"></script>

</body>

</html>
我看过教程,当然还有firebase文档。似乎这是sdk的问题,或者可能是我index.html末尾的脚本标记

<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>F2I</title>
  <base href="https://[" f2ifrance.firebaseapp.com/"> <meta name="viewport"
content="width=device-width, initial-scale=1">
  <!-- <base href="/"> -->
  <link rel="stylesheet" href="https://unpkg.com/bs-stepper/dist/css/bs-stepper.min.css">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">

  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  <!-- firebase hosting SDK -->
  <script src="/__/firebase/init.js"></script>
  <!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->
  <!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
  <script src="/__/firebase/7.0.0/firebase-app.js"></script>

  <!-- Add Firebase products that you want to use -->
  <script src="/__/firebase/7.0.0/firebase-firestore.js"></script>
  <script src="/__/firebase/7.0.0/firebase-storage.js"></script>

</body>

</html>

F2I

错误消息中的答案是正确的:在Firebase SDK之前包含
init.js
。试试这个:

  <!-- firebase hosting SDK -->
  <script src="/__/firebase/init.js"></script>
  <!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->
  <!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
  <script src="/__/firebase/7.0.0/firebase-app.js"></script>

  <!-- Add Firebase products that you want to use -->
  <script src="/__/firebase/7.0.0/firebase-firestore.js"></script>
  <script src="/__/firebase/7.0.0/firebase-storage.js"></script>

</body>

</html>
  <script src="/__/firebase/7.0.0/firebase-app.js"></script>
  <script src="/__/firebase/init.js"></script>

  <script src="/__/firebase/7.0.0/firebase-firestore.js"></script>
  <script src="/__/firebase/7.0.0/firebase-storage.js"></script>