cookie.js 是一個用來處理cookie數據管理的函數庫,很是簡單,一看就會用,但願你會用上它。npm
npm i commom-cookie
cookie.set(pro,value,[,options])
options可選,例如:cookie
cookie.set('name','cookie.js',{path:'/',expires:'1',domain:'...',secure:true})
cookie.get(pro)
cookie.getCookies()
cookie.clear(pro)
cookie.clearCookies()