1、毛病描写
> var sd=require("string_decoder").StringDecoder;undefined> var decoder=new StringDecoder();ReferenceError: StringDecoder is not defined at repl:1:17 at REPLServer.defaultEval (repl.Js:262:27) at bound (domain.Js:287:14) at REPLServer.runBound [as eval] (domain.Js:300:12) at REPLServer.<anonymous> (repl.Js:431:12) at emitOne (events.Js:82:20) at REPLServer.emit (events.Js:169:7) at REPLServer.Interface._online (readline.Js:211:10) at REPLServer.Interface._line (readline.Js:550:8) at REPLServer.Interface._ttyWrite (readline.Js:827:14)>
2、毛病缘由
由毛病提示可知,StringDecoder没有定义
3、解决办法
> var StringDecoder=require("string_decoder").StringDecoder;undefined> var decoder=new StringDecoder();undefined
以上是内存溢出为你收集整理的ReferenceError: StringDecoder is not defined全部内容,希望文章能够帮你解决ReferenceError: StringDecoder is not defined所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)