StringPrototype.anchor(Object, Object) Metod

Definition

Konverterar det angivna objektet till text som omges av fästpunktstaggar och ger fästpunktselementet det angivna namnattributet.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

public:
 static System::String ^ anchor(System::Object ^ thisob, System::Object ^ anchorName);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_anchor)]
public static string anchor(object thisob, object anchorName);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_anchor)>]
static member anchor : obj * obj -> string
Public Shared Function anchor (thisob As Object, anchorName As Object) As String

Parametrar

thisob
Object

Det objekt som den här metoden agerar på.

anchorName
Object

Namnattributet för fästpunktselementet.

Returer

En sträng i formuläret "<A NAME=""+anchorName+"">"+thisob+"</A>".

Attribut

Gäller för

Se även