SyntaxError: Unexpected token ILLEGAL
2016-06-27 22:23
309 查看
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、错误原因
单双引号混用,导致出现错误
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>
>
> 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、错误原因
单双引号混用,导致出现错误
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>
>
相关文章推荐
- Scroller
- Linux 开机 ,关机,重启命令整理
- 326. Power of Three
- Oracle获取执行计划方法
- 产品体验报告——Keep
- 网页设计课程之《”信息中心”网站的搭建》-网站布局和实现(二)
- 判断大小端
- 机器任务安排
- 步进电机单双脉冲
- altium designer 原理图无变化更新PCB时却反复删除添加元器件的处理方法
- THREE SUM
- oVirt & Openstack
- iOS UITableView
- 自定义SlideMenu
- 【MyBatis框架点滴】——MyBatis二级缓存
- git与github的使用
- 软件测试实习0627-testNG运行JUnit测试
- ios多线程 -- NSOperation 简介
- Android 自定义仿IOS上拉菜单实现
- java中volatile关键字的含义