ReferenceError: StringDecoder is not defined

ReferenceError: StringDecoder is not defined,第1张

概述1、错误描述&gt var sd=require("string_decoder").StringDecoder;undefined&gt var decoder=new StringDecoder();ReferenceError: StringDecoder is not defined at r

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所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1016069.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存