Confusion in Angular 2 Http Post Request

后端 未结 2 709
一个人的身影
一个人的身影 2021-01-26 12:16

First of all. Please bear with my questions.

What I am doing is just performing an ajax request which will return a response data of string.

Here\'s my php

2条回答
  •  旧巷少年郎
    2021-01-26 12:41

    Post requires a full or a relative URL to work. You can use:

    this.http.post('/parsers/peenoise.php', '', options)
    

提交回复
热议问题