SyntaxError: Unexpected token ILLEGAL
來源:程序員人生 發(fā)布時(shí)間:2016-07-11 08:33:35 閱讀次數(shù):2703次
1、毛病描寫
> buf=new Buffer("我愛你,簌簌簌簌簌');
SyntaxError: Unexpected token ILLEGAL
at Object.exports.createScript (vm.js:24:10)
at REPLServer.defaultEval (repl.js:235:25)
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、毛病緣由 單雙引號混用,致使出現(xiàn)毛病
3、解決辦法
> buf=new Buffer('我愛你,簌簌簌簌簌');
<Buffer e6 88 91 e7 88 b1 e4 bd a0 ef bc 8c e7 b0 8c e7 b0 8c e7 b0 8c e7 b0 8c
e7 b0 8c>
>
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈(zèng)