node.js全局变量console总结
来源:互联网 发布:阿里云免费域名注册 编辑:程序博客网 时间:2024/04/29 17:17
使用工具为HBuilder,编程语言为javascript
console.log("this is a log");console.info("this is an info");console.warn("this is a warn");console.error('this is an error');
在控制台得到的结果为
"this is a log""this is an info" "this is a warn" "this is an error"
使用cmd得到相同的结果。
日志的重定向:>(尖括号重定向)
尖括号重定向是对log()和info()的输出,在log.txt文件中是这样的
this is a logthis is an info
重定向符号 1> 和 2>
在login.txt中是
this is a logthis is an info
在err.txt中是
this is a warnthis is an error
1> 相当于>
2>是将error()和warn()输出
1 0
- node.js全局变量console总结
- node.js console使用总结
- Node.js之console
- Node.js console
- Node.js中的Console模块
- node.js全局变量(Global Objects)
- console调试JS总结
- Node.Js 控制台和定时器(console &Timer)
- Node.js console.log('中文') 乱码
- node.js学习(十四、Console模块)
- Node.js的全局对象和全局变量
- node.js全局对象和全局变量
- node.js util全局变量 事件驱动events
- node.js中的全局变量——global
- node.js 全局对象及全局变量
- Node.js的全局对象和全局变量
- node.js全局对象和全局变量
- Node.js入门总结
- 在 Linux 中怎样将 MySQL 迁移到 MariaDB 上
- Activity启动模式
- 重学三大框架-Struts2
- IOS相机使用学习笔记
- 关于引用本地资源图片 造成OOM的解决方案
- node.js全局变量console总结
- js手机界面调用安卓app
- MySQL
- Android仿搜狗浏览器加载动画
- 记录下Oracle 查询节点
- 《Linux Shell》笔记之dos2unix
- 虚拟机中centos联网
- HDU 3487 Play with Chain [splay]
- iOS -- 网络请求到的数据,中文出现乱码!!!