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
ドキュメンテーション