超级基本Firebase错误,“Firebase未定义” [英] Super basic Firebase error, "Firebase is not defined"
问题描述
$ b 这是从演示版本开始:
var myDataRef = new Firebase('
<这是来自演示链接,但是我在控制台中为我创建的任何Firebase数据库获得完全相同的响应。这可能是非常简单的,只是想把我的大脑包围在Firebase上,这与十年前在SQL世界里的情况有很大不同。
感谢指点。如果您将Firebase JavaScript客户端作为脚本加入,您将只能访问Firebase:
< script src =https://cdn.firebase.com/js/client/2.4.0/firebase.js> ;< /脚本>
这将使 Firebase
对象可能其他人)可用于您的脚本。
我建议您从这个 Firebase的5分钟互动教程。添加脚本标签在第1步解释。
昨天有一个类似的问题:
未捕获的ReferenceError:未定义Firebase
I'm making the move into Firebase. But Day One I'm stumped with a simple one liner.
This is right from the demo:
var myDataRef = new Firebase('https://un2ubl6u7zs.firebaseio-demo.com/');
And returns in my Chrome Console:
This is from the demo link, but I get exactly the same response in the console for any firebase DB I create. It's probably something REALLY simple, just trying to wrap my brain around Firebase, it's very different coming from a decade in the SQL world.
Thanks for pointers. :-)
You will only have access to Firebase, if you include the Firebase JavaScript client as a script:
<script src="https://cdn.firebase.com/js/client/2.4.0/firebase.js"></script>
This will make the Firebase
object (and may others) available to your script.
I recommend that you start with this 5-minute interactive tutorial for Firebase. Adding the script tag is explain in step 1 there.
There was a similar question yesterday: Uncaught ReferenceError: Firebase is not defined
这篇关于超级基本Firebase错误,“Firebase未定义”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!