如何將檔案設定為可公開讀寫

只需定義:

// These rules give anyone, even people who are not users of your app,
// read and write access to your database
{
  "rules": {
    ".read": true,
    ".write": true
  }
}

它在開發過程中很有用,但請注意,因為這種訪問級別意味著任何人都可以讀取或寫入你的資料庫