如何在jsp中将数字字段屏蔽为密码

时间:2020-02-28 06:16:28

标签: html css firefox passwords

我有一个只接受数字的文本字段。因此,当我输入值时,输入的值清晰可见。我不希望用户在文本字段中看到输入的值。 总体而言,该文本字段应为数字类型,并使用掩码作为密码点。

预期结果

enter image description here

实际结果

enter image description here

2 个答案:

答案 0 :(得分:1)

请使用输入标签。

<input type="password">

答案 1 :(得分:1)

switchMap()
...

switchMap(() => {          
    const result$ = this.exampleDatabase!.getRepoIssues(this.sort.active, this.sort.direction, this.paginator.pageIndex);
    timer(100).pipe(takeUntil(result$)).subscribe(t => this.isLoadingResults = true);
}),

...

我希望它有用。