我正在使用JS来呈现HTML代码,并想在HTML中添加用户输入,这是使用模板文字,但它不起作用。上面写着[object HTMLTextAreaElement] 我正在使用这个代码。 <script>var heading = document.getElementById("heading") //I have a input tag with id heading in HTML code and type textopen.document.write(
我在解析页面上<strong>元素的整数甚至文本时遇到了困难。我想要做的是解析推特配置文件中的关注者数量,比如。TypeError: Object #<HTMLElement> has no method 'text'
如何从该元素中获取文本,然后从该元素中解析整数?不幸的是,<strong>元素</