请有人选择一个更好的标题,因为我坦率地说,不知道如何命名这个。我想要做的是将Textarea的内容作为字符串(在编写处理平面文件的应用程序时与NW.js文件函数一起使用),并使用以下代码:Property 'value' does not exist on type 'HTMLElement'
我做错了什么?
as HTMLInputElementconst a: HTMLInputElement = document.getElementById("input1")!该错误如下:
Type 'HTMLElement' is missing the following properties from type 'HTMLInputElement': accept, align