<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}}