簡體   English   中英

我在我的谷歌瀏覽器開發者工具控制台中看不到 console.log 消息。 任何想法為什么?

[英]I cannot see the console.log messages in my google chrome developer tool console. Any ideas why?

這就是我得到的

另外,我在我的 javascript 文件中使用 console.log 這是我的 function

function eventData(){
var Email;
var newemail;
firebase.auth().onAuthStateChanged(function(user) {
 if (user) {
  Email = user.email;
   newemail = Email.replace(".com","")

  console.log("  Email in event page is : " + Email);
      console.log(" new  Email in event page is : " + newemail);
  }




<body onLoad="eventData()">


<img src="img/logo.png" style="width: 90px; height: 90px; margin- 
left: 65px; margin-top: 18px"/>
<span><img src="img/soldoutsa.png" style="width: 120px; height: 
120px; margin-top: 18px"/></span>
<button class="button1" id="pulse" onClick="logout()" style="margin- 
top: 10px; margin-left: 1080px"><img src="img/logout.png" 
width="30px" 
height="30px"></button>
<p style="color: #999999; margin-left: 65px; font-size: 40px; font- 
weight: 600; margin-top: 5px; font-family: 'Gill Sans Nova Light'; 
margin-top: 15px">Events</p>
<p style="color: #999999; margin-left: 65px; font-weight: 600; font- 
size: 30px; font-family: 'Gill Sans Nova Light'; margin-top: -20px; 
margin-top: 10px">Your events</p>

<div class="scroll scroll2">
<div class="content">


<table id="tbl_users_list" border="1">
<tr>
 <td>#ID</td>
 <td>NAME</td>
</tr>

這是我的 javascript 和 HTML 的代碼。 請幫幫我

..................................................... …………

它只是沒有 go 進入條件

if (user)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM