简体   繁体   中英

Firebase Web SDK 3.x ServerValue timestamp?

I am trying to figure out the alternative to Firebase.ServerValue.TIMESTAMP from SDK v 2.x in SDK v3.x

Does anyone know what's the new way to get firebase server timestamp in the Web SDK?

它现在是firebase.database.ServerValue.TIMESTAMP

Here is my answer, with the import added:

import * as firebase from 'firebase';

// ...

firebase.database.ServerValue.TIMESTAMP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM