JavaScript String anchor()
ဥပမာ
let text = "Hello World!";
let result = text.anchor("Chapter 10");
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
string anchor() ကို JavaScript တွင် ရပ်တန့်ထားသည်။
အဲဒါကို ရှောင်ပါ။
၎င်းသည် သင့်ဘရောက်ဆာတွင် အချိန်မရွေး အလုပ်မလုပ်တော့ပါ။
anchor
နည်းလမ်းသည် <a> tag တွင် ထည့်သွင်းထားသော စာကြောင်းကို ပြန်ပေးသည် -
<a name="anchorname">string</a>
အထားအသို
string.anchor("name")
ကန့်သတ်ချက်များ
Parameter | Description |
name | Required. The name of the anchor. |
တန်ဖိုးကို ပြန်ပေးသည်။
<a> တဂ်တွင် ထည့်သွင်းထားသော စာကြောင်း။ |
❮ JavaScript ကြိုးအကိုးအကား