在我的网页中,我尝试从一个Firebase数据库进行查询,并在另一个Firebase数据库进行更新。
问题是,当我尝试在第二个数据库上进行更新时,出现错误消息,指出该属性未定义。
我放置了几个控制台日志,我确定它们包含一个数字值,所以我不确定为什么Firebase抱怨该属性未定义。
我的HTML页面
<html>
<head>
<meta charset="utf-8">
<title>
Firebase Test
</title>
</head>
<style>
.alright
{
text-align: left;
border: 1px solid black;
border-collapse: collapse;
}
</style>
<body>
<input type="button" value="SHUFFLE" onClick="window.location.reload()">
<table class="alright">
<tr>
<th><h1>Niyant</h1></th>
<th><h1>Varun</h1></th>
</tr>
<!--<tr>
<th><h1 id="niyantscoretag"></h1></th>
<th><h1 id="varunscoretag"></h1></th>
</tr>-->
<tr>
<td><h2 id="ns">0</td>
<td><h2 id="vs">0</td>
</tr>
<tr>
<td><h3 id="nrank">0</td>
<td><h3 id="vrank">0</td>
</tr>
<tr>
<td><img id="imgtag1"/></td>
<td><img id="imgtag2"/></td>
</tr>
<tr>
<td><h2>Winner is</h2></td>
<td><img id="imgtag3"/></td>
</tr>
</table>
<script src="https://www.gstatic.com/firebasejs/3.9.0/firebase.js"></script>
<script>
var config = {
apiKey: "AIzaSyAXpEHm1uLfRLS-6QCun1iVioquEmpmbAI",
authDomain: "helloworld-3c2e7.firebaseapp.com",
databaseURL: …Run Code Online (Sandbox Code Playgroud) 有人能告诉我如何从Mac上卸载CURL?
我从Mac删除了包含curl的文件夹.
但是在我运行"curl -V"后删除文件夹后,它会显示curl的当前版本以及可用的协议,如下所示.
这让我怀疑卷曲可能没有被卸载.
我希望代码片段能够以i的值打印出100次.
但它只打印出一次,如下所示.
我在这里错过了什么?
let i = 0;
for (; i++; i < 100) {
console.log('Loop ==>' + i);
}
console.log('Loop Done');
console.log('Value of i ==>' + i);Run Code Online (Sandbox Code Playgroud)