StringPrototype.anchor(Object, Object) Metoda

Definicja

Konwertuje określony obiekt na tekst zawarty w tagach kotwicy i nadaje element kotwicy określony atrybut name.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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

Parametry

thisob
Object

Obiekt, na który działa ta metoda.

anchorName
Object

Atrybut name elementu kotwicy.

Zwraca

Ciąg w postaci "<A NAME=""++"</A>"anchorName+"">"+thisob.

Atrybuty

Dotyczy

Zobacz też