Firebase未定义。超级固定,但修复不工作。 Hello World示例 [英] Firebase not defined. Super fixable, but fix is not working. Hello World example
本文介绍了Firebase未定义。超级固定,但修复不工作。 Hello World示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<!DOCTYPE html>
< html>
< head>
< script src =https://www.gstatic.com/firebasejs/live/3.0/firebase.js>< / script>
< script>
var myFirebaseRef =新的Firebase(https://test-project-19d2d.firebaseio.com);
$ b $ myFirebaseRef.set({
title:Hello World!,
author:Firebase,
location:{
city:San Francisco,
州:California,
zip:94103
}
});
< / script>
< / head>
< body>
Hello World
< / body>
< / html>
<您正在使用Firebase版本3.0与旧版本的语法...
新的Firebase(url)//无效
检查此连结
https://firebase.google.com/docs/web/setup
这里定义了firebase 3.0如何与javascript集成
This bug is probably staring right at me. Super simple, include the firebase.js, and all should be ready to go. Trying to display records. Stuck on this not defined thing. Yet all my firebase.js code is there. Thanks for any tips.
<!DOCTYPE html>
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
var myFirebaseRef = new Firebase("https://test-project-19d2d.firebaseio.com");
myFirebaseRef.set({
title: "Hello World!",
author: "Firebase",
location: {
city: "San Francisco",
state: "California",
zip: 94103
}
});
</script>
</head>
<body>
Hello World
</body>
</html>
解决方案
You are using Firebase version 3.0 with the syntax of the legacy version...
new Firebase(url) //not valid anymore
check this link https://firebase.google.com/docs/web/setup
here it is defined how firebase 3.0 is integrated with javascript
这篇关于Firebase未定义。超级固定,但修复不工作。 Hello World示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文