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.
struts2に1つのActionクラスがあります。1つのHTMLファイルをActionクラスに提供します。
anchorHTMLファイル内のタグの総数を見つけるにはどうすればよいですか?
anchor
javascriptでは、これを行います。
var totalAnchors = document.getElementsByTagName('a').length;
リンクの直後の場合:
alert(document.links.length);