18 lines
767 B
Markdown
18 lines
767 B
Markdown
---
|
||
title: Meet the Node console
|
||
localeTitle: 认识节点控制台
|
||
---
|
||
## 认识节点控制台
|
||
|
||
确保您克隆了正确的存储库/故障项目,并在myapp.js中编写代码。
|
||
|
||
节点控制台提供了许多方法。您可以使用Node.js文档找到这些方法的列表 [在这里](https://nodejs.org/dist/latest-v10.x/docs/api/console.html) 。常见的用途是记录错误,例如:
|
||
|
||
```javascript
|
||
console.log("An error happened");
|
||
```
|
||
|
||
### 如果你使用Glitch
|
||
|
||
* Glitch已将“日志”按钮更改为“状态”按钮,仍然位于应用名称下方的左上方
|
||
* 不要直接提交“编辑”页面。点击“显示”按钮(在顶部)并提交应用程序显示页面的网址(网址格式类似于https://appname.glitch.me/) |