Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
¿Cómo puedo transferir los datos de la consola de mi navegador a mi código php? Estoy usando un javascript en la consola del navegador.
 This is the code I am using for the browser console <!DOCTYPE html> <html lang="en"> <head> <title>Firebase</title> <script src="https://www.gstatic.com/firebasejs/7.19.1/firebase-app.js"></script> <script src="https://www.gstatic.com/firebasejs/7.19.1/firebase-database.js"></script> <style type="text/css"> /* Set the size of the div element that contains the map */ #map { height: 400px; /* The height is 400 pixels */ width: 100%; /* The width is the width of the web page */ } </style> </head> <!-- <body> <div id="root"></div> </body> -->

Esto es para conectar la consola del navegador a la base de datos de firebase.

 <script> const firebaseConfig = { apiKey: "AIzaSyD2SevZI0FJV4jew4Z-c9pl7CxntknqEQY", authDomain: "thesisesp8266.firebaseapp.com", databaseURL: "https://thesisesp8266-default-rtdb.firebaseio.com", projectId: "thesisesp8266", storageBucket: "thesisesp8266.appspot.com", messagingSenderId: "316864477515", appId: "1:316864477515:web:56b460e9ce1d3a088550ce", measurementId: "G-F3SG81M2L6" };

Esto es para imprimir los datos de la base de datos a la consola del navegador.

 firebase.initializeApp(firebaseConfig); database = firebase.database(); var ref = database.ref('GPS'); ref.on('value', gotData, errData); function gotData(data){ console.log(data.val()); var GPS = data.val(); var keys = Object.keys(GPS); console.log(keys); } function errData(err){ console.log('Error!'); console.log(err); } </script> </body> </html>
about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda