[英]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.