eSignAndRegistration: boolean;
registration: boolean;
esign: boolean;
css: boolean;
ngOnInit(): void {
if (this.activatedRoute.snapshot.queryParamMap.has('registration')) {
this.registration = true;
} else if (this.activatedRoute.snapshot.queryParamMap.has('esign®istration')) {
this.eSignAndRegistration = true;
} else if (this.activatedRoute.snapshot.queryParamMap.has('esign')) {
this.esign = true;
} else if (this.activatedRoute.snapshot.queryParamMap.has('css')) {
this.css = true;
}
}
为什么'&'符号会这样做?我怎样才能做到这一点,以便我可以使用 'esign®istration' 使布尔值 'eSignAndRegistration' 为真。