getCookie 传入字符串,获取指定名字的 cookie 的值 API Return 参数 说明 类型 string 指定名称的 cookie 的值 string Options 参数 说明 类型 默认值 name 要读取的 cookie 名称 string 无 Example import { getCookie } from 'ranuts'; const result = getCookie('name'); console.log(result); // ''