ScriptReferenceBase.ReplaceExtension(String) 方法

定義

替換指定腳本路徑中的副檔名,以指定除錯腳本。

protected:
 static System::String ^ ReplaceExtension(System::String ^ pathOrName);
protected static string ReplaceExtension(string pathOrName);
static member ReplaceExtension : string -> string
Protected Shared Function ReplaceExtension (pathOrName As String) As String

參數

pathOrName
String

腳本的完整路徑可以重新命名。 路徑必須以「.js」結束。

傳回

包含腳本路徑的字串,並帶有除錯擴充功能。

備註

此方法假設腳本具有「.js」副檔名。 接著它會將副名替換為「.debug.js」。

適用於