* * @param {String} url * @returns {url} 将 'http://url.com/page?name=Adam&surname=Smith' 替换为 'http://url.com/page'
(url)
| 301 | * @returns {url} 将 'http://url.com/page?name=Adam&surname=Smith' 替换为 'http://url.com/page' |
| 302 | */ |
| 303 | getBaseURL(url) { |
| 304 | return url.replace(/[?#].*$/, '') |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * |
nothing calls this directly
no outgoing calls
no test coverage detected