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

请问是怎么知道调用这个接口http://api.12306.com/v1/train/stations去获取城市对应的Code #4

Open
zengzehao opened this issue May 31, 2018 · 3 comments

Comments

@zengzehao
Copy link

请问是怎么知道调用这个接口http://api.12306.com/v1/train/stations去获取城市对应的Code

@YeautyYE
Copy link
Owner

1.打开Chrome,清掉缓存。
2.按F12打开开发者工具
3.打开url: http://www.12306.com/#/train/index
4.一个个请求去找,http://api.12306.com/v1/train/stations 有两个。一个OPTIONS请求,一个GET请求。GET请求就是你要的

@zengzehao
Copy link
Author

感谢

@YeautyYE
Copy link
Owner

YeautyYE commented Jun 3, 2018

不客气

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