let urlSearchParams = new HttpParams() 'Content-Type': 'application/x-www-form-urlencoded'
.append('Action', "31")
.append('PlanStartTime', planID + "^" + startTime);
httpC 默认 是 传送 是 json 格式 Content-Type
通过设置请求头 该为From Data key vlue 格式
通过设置 请求头设置 let httpOptions = {
headers: new HttpHeaders({
'Accept': 'text/html, application/xhtml+xml, */*',
'Content-Type': 'application/x-www-form-urlencoded'
}),
responseType: 'text'
};
返回 xml 格式
httpC 默认返回json 对象
不能设置 <base> 标签 浏览器随后将不再使用当前文档的 URL,而使用指定的基本 URL 来解析所有的相对 URL。这其中包括 <a>、<img>、<link>、<form> 标签中的 URL。
会使 阻碍 路由刷新
通过更该 webpack 的默认public 编译路径 即 deployUrl 让webpack 找到正确的路径