Jer*_*zka 7 javascript node.js typescript wallaby.js angular
问题是原型未定义,尽管在节点控制台中编写http.IncomingMessage.prototype确实将对象作为输出.有任何想法吗 ?
var req = Object.create(http.IncomingMessage.prototype)
Uncaught TypeError: Cannot read property 'prototype' of undefined
at http://localhost:62625/____wallaby-bundle.js?1501265946287&wallabyFileId=bundle:219253
Run Code Online (Sandbox Code Playgroud)
Sri*_*har 10
我认为http.IncomingMessage是不确定的.
可能会发生http已被覆盖在代码中的某些位置.
var http = require('http');
var req = Object.create(http.IncomingMessage.prototype)
Run Code Online (Sandbox Code Playgroud)
我测试了上面的代码,它的工作原理.
| 归档时间: |
|
| 查看次数: |
184 次 |
| 最近记录: |