Any JavaScript code, other than "document.cookie" to view all the cookies in the browser?
1条回答 默认 最新
- dpfln86244 2014-01-21 06:08关注
document.cookie
is for getting/setting cookies - that's what you should use...There is an alternative for local storage with javascript, which is conveniently called localStorage and sessionStorage.
If you're looking for a library to make it easier to work with
document.cookie
, perhaps you'd be interested in this: jQuery Cookie (click). Even better, MDN has a little library for working with cookies in these docs (click) (no need for jQuery).本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
- ¥15 cmd cl 0x000007b
- ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
- ¥500 火焰左右视图、视差(基于双目相机)
- ¥100 set_link_state
- ¥15 虚幻5 UE美术毛发渲染
- ¥15 CVRP 图论 物流运输优化
- ¥15 Tableau online 嵌入ppt失败
- ¥100 支付宝网页转账系统不识别账号
- ¥15 基于单片机的靶位控制系统