我在第6行的版本2.0.3上遇到了打字稿错误。
private getFormEncode(formValues: any): string {
let str: Array<any> = [];
for (let key of Object.keys(formValues)) {
const name: string = encodeURIComponent(key);
const value: string = encodeURIComponent(formValues[key]);
str.push(`${name}=${value}`);
}
return str.join('&');
}