修改页面

This commit is contained in:
wangxiaowei
2025-06-06 18:03:22 +08:00
parent 022c640d89
commit 47d06ae355
68 changed files with 11600 additions and 4438 deletions

View File

@ -0,0 +1,14 @@
'use strict'
/**
* Creates a new URL by combining the specified URLs
*
* @param {string} baseURL The base URL
* @param {string} relativeURL The relative URL
* @returns {string} The combined URL
*/
export default function combineURLs(baseURL, relativeURL) {
return relativeURL
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
: baseURL
}