I have a code:(我有一个代码:)
document.getElementById('loginInput').value = '123';
But while compiling the code I receive following error:(但是在编译代码时,我收到以下错误:)
Property value does not exist on type HTMLElement.(属性值在HTMLElement类型上不存在。)
I have declared a var: value: string;
(我已经声明了var: value: string;
)
How can I avoid this error?(如何避免此错误?)
Thank you.(谢谢。)
ask by Natalia translate from so