ClientScriptItem.Source 属性

定义

获取客户端脚本元素的 src 特性值。

public:
 property System::String ^ Source { System::String ^ get(); };
public string Source { get; }
member this.Source : string
Public ReadOnly Property Source As String

属性值

src 元素中的 script 特性指定的源文件的路径。

注解

属性 Source 指定客户端脚本内容的外部源位置。 通常,元素的脚本语句 script 是使用 TextSource 属性指定的。

Source如果 属性为 null 或空字符串 (“”) ,src则不会在 元素中script设置 特性。

属性 SourceClientScriptItem初始化。

适用于

另请参阅