getUrlFilename 函数用于获取 URL 的文件名。
import { getUrlFilename } from '@movk/core'
getUrlFilename('https://example.com/path/file.pdf') // 'file.pdf'
getUrlFilename('https://example.com/path/file.pdf', false) // 'file'
getUrlFilename('https://example.com/path/') // ''
getUrlFilename(url, includeExtension?)获取 URL 的文件名。
true。