简体   繁体   English

为什么src =“…/ firebase-app.js”不起作用?

[英]Why src=“…/firebase-app.js” doesn't work?

According to Firebase, I should use src=".../firebase-app.js" but it doesn't work. 根据Firebase的说法,我应该使用src=".../firebase-app.js"但它不起作用。 So I used ".../firebase.js" and It worked. 因此,我使用了".../firebase.js" ,它可以正常工作。

Why? 为什么?

Here is my code: 这是我的代码:

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <title>Log in</title>
    </head>
    <script src="login.js"></script>
    <body></body>
    <script src="https://www.gstatic.com/firebasejs/6.3.1/firebase-app.js"></script>
    <h1 id="h1">Log in Page</h1>
    <form id="loginform">
        Username : <br>
        <input type="text" name="email" id="email"><br>
        Password : <br>
        <input type="password" name="password" id="password"><br>
    </form>
    <button onclick="login()">Login</button>
</html>

Firebase core features are provided by the below link:(required) Firebase核心功能由以下链接提供:(必需)

<script src="/__/firebase/6.3.1/firebase-app.js"></script>

Whereas firebase.js provides entire SDK: 而firebase.js提供了完整的SDK:

<script src="/__/firebase/6.3.1/firebase.js"></script>

Please refer document Document provide on official website firebase - documentation 请参考官方网站firebase上提供的文档-文档

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 firebase.js 和 firebase-app.js 的区别 - Difference between the firebase.js and the firebase-app.js 意外令牌导出 firebase-app.js:1590 - unexpected token export firebase-app.js:1590 错误:“无法实例化 firebase-storage - 请务必先加载 firebase-app.js” - Error: "Cannot instantiate firebase-storage - be sure to load firebase-app.js first" firebase-app.js 未加载显示 net::ERR_CONTENT_DECODING_FAILED 200 (OK) - firebase-app.js not loading shows net::ERR_CONTENT_DECODING_FAILED 200 (OK) Img src=&quot;blob:http://localhost... 不起作用 - 无论是 createObjectURL 还是 readAsDataURL | Firebase | Vue.js - Img src="blob:http://localhost... doesn't work - neither with createObjectURL or readAsDataURL | Firebase | Vue.js 为什么带有 src=&quot;../node_modules/angular/angular.js&quot; 的脚本标记不起作用? - Why script tag with src="../node_modules/angular/angular.js" doesn't work? Web 应用程序控制台错误:firebase-auth.js:1 未捕获错误:无法实例化 firebase-auth - 请务必先加载 firebase-app.js - Web App Console error: firebase-auth.js:1 Uncaught Error: Cannot instantiate firebase-auth - be sure to load firebase-app.js first 用数据属性更改SRC不起作用-JS - Changing SRC with data attribute doesn't work- js 带有vue.js的脚本src无法正常工作 - script src with vue.js doesn't work 为什么一个简单的<script src=“…”> </script>不起作用? - Why a simple <script src=“…”> </script> doesn't work?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM