/** * UseTitle 是一个接受字符串并将文档标题设置为该字符串的函数。 * @param {string} title - 文档标题 */ export const useTitle = (title: string) => { document.title = title }