Get cookie by name

前端 未结 30 1426
野的像风
野的像风 2020-11-22 03:58

I have a getter to get the value from a cookie.

Now I have 2 cookies by the name shares= and by the name obligations= .

I want to

30条回答
  •  梦毁少年i
    2020-11-22 04:19

    If you use jQuery I recommend you to use this plugin:

    https://github.com/carhartl/jquery-cookie
    https://github.com/carhartl/jquery-cookie/blob/master/jquery.cookie.js

    
    
                                     
                  
提交回复
热议问题