本文整理匯總了TypeScript中@jupyterlab/coreutils/lib/url.URLExt.join方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript URLExt.join方法的具體用法?TypeScript URLExt.join怎麽用?TypeScript URLExt.join使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@jupyterlab/coreutils/lib/url.URLExt
的用法示例。
在下文中一共展示了URLExt.join方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: requestDiff
function requestDiff(
base: string, remote: string | undefined,
baseUrl: string,
onComplete: (result: any) => void,
onFail: (result: any) => void): void {
requestJson(URLExt.join(window.location.origin, urlRStrip(baseUrl), 'api/diff'),
{base, remote},
onComplete,
onFail);
}
示例2: requestMerge
function requestMerge(
base: string, local: string, remote: string,
baseUrl: string,
onComplete: (result: any) => void,
onFail: (result: any) => void): void {
requestJson(URLExt.join(window.location.origin, urlRStrip(baseUrl), 'api/merge'),
{base, local, remote},
onComplete,
onFail);
}
示例3: requestDiffPromise
function requestDiffPromise(
base: string, remote: string | undefined,
baseUrl: string): Promise<JSONObject> {
return requestJsonPromise(URLExt.join(window.location.origin, urlRStrip(baseUrl), 'api/diff'),
{base, remote});
}
示例4: requestMergePromise
function requestMergePromise(
base: string, local: string, remote: string,
baseUrl: string): Promise<JSONObject> {
return requestJsonPromise(URLExt.join(window.location.origin, urlRStrip(baseUrl), 'api/merge'),
{base, local, remote});
}