SHARE
TWEET

Untitled

a guest Jun 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var content = '';  
  2. var database = firebase.database();
  3. database.ref().child("A_Usuarios").orderByChild("TipoUsuario")
  4. .equalTo("Usuario1")
  5. .on('value', function(snapshot){
  6.     if(snapshot.exists()){
  7.         console.log(snapshot.key)
  8.         content +='<ul>';  
  9.         snapshot.forEach(function(data){
  10.             var val = data.val();
  11.             content += '<li>' + val.Usuario + '</li>';
  12.             content += '<li>' + val.Usuario + '</li>';
  13.             content += '<li>' + val.Usuario + '</li>';
  14.             content += '<li>' + val.Usuario + '</li>';
  15.             content += '<li>' + val.Usuario + '</li>';  
  16.         });
  17.         content +='</ul>';
  18.         $("#A_Usuarios").empty().html(content);
  19.     }
  20. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top