搜索文档
getCookie(name): string | null
name
string
null
获取 cookie
string | null
Example
const token = getCookie('token');