[英]I cannot see the console.log messages in my google chrome developer tool console. Any ideas why?
Also, I am using console.log in my javascript files this is my function另外,我在我的 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>
This is my code for javascript and HTML.这是我的 javascript 和 HTML 的代码。 Please help me out
请帮帮我
.............................................................. ..................................................... …………
It just doesn't go into the condition它只是没有 go 进入条件
if (user)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.