http.createServer((req,res)=>{
res.write('hello world');
console.log(typeof res);// obj
res.end();
});
如何 查看req和res的具体对象类型,这样可以去文档中看具体详细api.typeof打印出的是object,我希望打印出的是http.ServerResponse
怎么搞
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
打印函数的类信息: