Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么我这里直接报错 #1

Open
fairyly opened this issue Jan 12, 2018 · 6 comments
Open

怎么我这里直接报错 #1

fairyly opened this issue Jan 12, 2018 · 6 comments

Comments

@fairyly
Copy link

fairyly commented Jan 12, 2018

不知道是不是 node 版本问题, 原来 node 6 函数报错,后来 node 8,乱码
鍑哄彂绔?鏉窞):

@liuleihang
Copy link

刚试了一下,刚开始的获取城市列表js内容出错了,然后把请求地址中station_version=1.8955参数去掉就可以了。

@fairyly
Copy link
Author

fairyly commented Jan 16, 2018

thanks

@fairyly
Copy link
Author

fairyly commented Jan 16, 2018

我 node 8.9,还是报错,打印 console.log(result.body);
const data = JSON.parse(result.body);
发现出来的是错误页面

@fairyly
Copy link
Author

fairyly commented Jan 16, 2018

一开始填写的时候就是乱码这个什么问题,编码?,后来发现from to 是没有获取到的,undefined

@fairyly
Copy link
Author

fairyly commented Jan 16, 2018

看了 ,这两个值没取到,不知道是不是 windows 问题,我用 cmder
readlineSync.question('出发站(北京):');
readlineSync.question('到达站(上海):');

@fairyly
Copy link
Author

fairyly commented Jan 16, 2018

qq 20180116164841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants