StringPrototype.anchor(Object, Object) 方法

定義

將指定的物件轉換為以錨點標籤包圍的文字,並賦予錨點元素指定的名稱屬性。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

thisob
Object

這個方法作用的對象。

anchorName
Object

錨元素的名稱屬性。

傳回

一個形式"<A NAME=""+thisobanchorName+"">"++"</A>"為 的字串。

屬性

適用於

另請參閱