尝试安装Javabridge时,我收到以下代码转储/错误消息,不知道从哪里开始。我安装了一大堆视觉工作室软件包,能够推动我上次的情况(Installing Javabridge With Pip Error),但是已经停滞不前,并且没有找到任何关于从哪里到网上的文档:
//service.ts
getJsonData(): Observable < any > {
return this.http.get('../assets/data.json')
.map((res: Response) => res.json())
.catch((error: any) => Observable.throw(error.json().error || 'server returns error'))
}
pushResults(question1: string, question2: string, question3: string) {
return this.http.post('http://localhost:8000/newPush', {
question1: question1,
question2: question2,
question3: question3
});
}
//component.ts
jsonData = [];
getJsonData() {
this.AppService.getJsonData().subscribe(
data => console.log('json', this.jsonData = data),
error => console.log('server returns error')
);
}
pushResults(question1: string, question2: string, question3: string) {
this.AppService.pushResults(question1, question2, question3);
}
如果有人对如何解决这个问题有任何见解,我将非常感激。