input How to block Chinese input method

1、iem-mode:disabled

Poor compatibility, only compatible with ie, firefox

2、 type="password" 

<input nz-input type="password"  readonly onfocus="this.removeAttribute('readonly');" (keyup)="qrCodeKeyup($event)" [(ngModel)]="qrCodeForm.plan_guid" name="plan_guid"  placeholder="条码信息"/>
                <input nz-input  readonly onfocus="this.removeAttribute('readonly');"  [(ngModel)]="qrCodeForm.plan_guid" name="plan_guid"  placeholder="条码信息" 
                style="position: absolute;
                left: 0;
                top: -7px;
                pointer-events: none;" />

pointer-events: none; // stop all events

The upper layer cursor does not display the problem to be solved

 

Guess you like

Origin blog.csdn.net/sou_vyp/article/details/100019973