语言

ScriptTagHelper.Src 属性

定义

要使用的外部脚本的地址。

public:
 property System::String ^ Src { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("src")]
public string Src { get; set; }
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("src")>]
member this.Src : string with get, set
Public Property Src As String

属性值

属性

注解

在所有情况下传递到生成的 HTML。

适用于