我开了json-server 然后ng serve 还是获取不到数据

来源:5-2 常见操作符(一)

weixin_慕桂英823842

2020-08-19

HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: “Unknown Error”, url: “http://localhost3000/quotes/2”, ok: false, …}
error: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: “error”, …}
headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}
message: "Http failure response for http://localhost3000/quotes/2: 0 Unknown Error"
name: "HttpErrorResponse"
ok: false
status: 0
statusText: "Unknown Error"
url: "http://localhost3000/quotes/2"
proto: HttpResponseBase

写回答

1回答

接灰的电子产品

2020-08-19

要在一个窗口启动json-server、另一个窗口启动ng

0
2
接灰的电子产品
什么错误?贴图看一下。json-server确定启动成功了吗
2020-08-19
共2条回复

Angular打造企业级协作平台,让你在Angular领域中出类拔萃

全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用

998 学习 · 536 问题

查看课程