通过


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

属性值

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

注解

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

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

属性 SourceClientScriptItem..

适用于

另请参阅