开发者

JQuery.cookies library

开发者 https://www.devze.com 2022-12-19 06:50 出处:网络
I\'m trying to use the JQuery cookies library http://code.googl开发者_运维知识库e.com/p/cookies/

I'm trying to use the JQuery cookies library http://code.googl开发者_运维知识库e.com/p/cookies/ But am not able to set key value pairs within the cookie. I can't see how in the documentation, does anyone know how?

Thanks


From the documentation:

$.cookies.set( 'sessid', 'dh3tr62fghe' );

So, in this case sessid is your key, dh3tr62fghe is value.

If this is not what did you ask, sorry then.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号