Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 wolfram alpha api,我想计算一下有多少<plaintext></plaintext>元素,以便我可以使用 dom.getElementsByTagName 运行它们
<plaintext></plaintext>
只需使用,
dom.getElementsByTagName("plaintext").length
getElementsByTagName()返回一个具有属性的 NodeList length。
getElementsByTagName()
length
文档