您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
555B

  1. import { HttpParameterCodec } from '@angular/common/http';
  2. /**
  3. * Custom HttpParameterCodec
  4. * Workaround for https://github.com/angular/angular/issues/18261
  5. */
  6. export class CustomHttpParameterCodec implements HttpParameterCodec {
  7. encodeKey(k: string): string {
  8. return encodeURIComponent(k);
  9. }
  10. encodeValue(v: string): string {
  11. return encodeURIComponent(v);
  12. }
  13. decodeKey(k: string): string {
  14. return decodeURIComponent(k);
  15. }
  16. decodeValue(v: string): string {
  17. return decodeURIComponent(v);
  18. }
  19. }