JavaScript文字列anchor()
例
let text = "Hello World!";
let result = text.anchor("Chapter 10");
定義と使用法
文字列anchor()はJavaScriptで非推奨になりました。
使用は避けてください。
それはいつでもあなたのブラウザで動作しなくなるかもしれません。
このanchor
メソッドは、<a>タグに埋め込まれた文字列を返します。
<aname = "anchorname">文字列</a>
構文
string.anchor("name")
パラメーター
Parameter | Description |
name | Required. The name of the anchor. |
戻り値
<a>タグに埋め込まれた文字列。 |
❮JavaScript文字列リファレンス