Firebase集不起作用

时间:2016-07-28 10:48:31

标签: javascript html jsp web firebase

<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase-database.js"></script>
<script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
<script>
    var config = {
        apiKey : "AIzaSyCnmZWNwp3CfjXDcDL5MADIej6GwvxWEtQ",
        authDomain : "dsmweb-ba185.firebaseapp.com",
        databaseURL : "https://dsmweb-ba185.firebaseio.com",
        storageBucket : "dsmweb-ba185.appspot.com",
    };
    firebase.initializeApp(config);
    var usersRef = ref.child("assignment");
    userRef.set(<%=submit%>);
</script>

这是我的代码..而且这不起作用。 提交变量是卑鄙的

{Testuser={date=8/8, teachername=Testuser, title=Let's do homework}}

0 个答案:

没有答案