n.錨( anchor的名詞復數(shù) );給人安全感的物(或人)
v.拋錨( anchor的第三人稱單數(shù) );擔任(電視節(jié)目等的)主持人;(把…)系住, (使)固定
javascript anchors屬性 語法
作用:返回對文檔中所有 Anchor 對象的引用。
語法:document.anchors[]
javascript anchors屬性 示例
<html> <body> <a name="first">第一個錨</a><br /> <a name="second">第二個錨</a><br /> <a name="third">第三個錨</a><br /> <br /> 文檔中錨的數(shù)目: <script type="text/javascript"> document.write(document.anchors.length) </script> </body> </html>
運行實例 ?
點擊 "運行實例" 按鈕查看在線實例