Last active
April 13, 2019 12:33
-
-
Save Dylan0916/3d2c333ccc0c8f53f0fee4c4d69e28a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onclick="setData()">set</button> | |
<script> | |
const db = firebase.firestore(); | |
function setData() { | |
db.collection("to-do-list").doc("to-do").set({ | |
item: "處理 ...", | |
date: "20XX-XX-XX", | |
desctiption: "...", | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment