二手车小程序

This commit is contained in:
浅念
2025-09-19 09:54:43 +08:00
parent 91e604a6af
commit 507bff6d65
869 changed files with 107160 additions and 0 deletions
@@ -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
}