| 属性名称 | 用途 |
| platform | 判断当前系统平台 |
| argv | 当前进程的命令行参数数组 |
| execPath | 当前进程的可执行文件的绝对路径 |
| stdout | 指向标准输出 |
| stdin | 指向标准输入 |
| stderr | 指向标准错误 |
| stderr | 指向标准错误 |
console.log(porcess.platform) // darwin
console.log(process.argv); // [ '/usr/local/bin/node', '/Users/ali-130257n/www/weex-jackzoo/projects/demo.js', '-p', '-v' ]
let args = process.argv.slice(2); console.log(args) // [ '-p', '-v' ]
const unhandledRejections = new Map();
process.on('unhandledRejection', (reason, p) => {
unhandledRejections.set(p, reason);
});
process.on('rejectionHandled', (p) => {
unhandledRejections.delete(p);
});
process.on('warning', (warning) => {
console.warn(warning.name); // Print the warning name
console.warn(warning.message); // Print the warning message
console.warn(warning.stack); // Print the stack trace
});
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有