开发者

Load cookies data using jquery

I have a code like this:

<script type="text/javascript">
<!--
 $(document).ready(function(){
 var myPlayList = [];

and I want to load data into myPlayList = []; from cookies, can I use myPlayList = [$.cooki开发者_如何学运维e("data"


You could probably achieve this with:

https://github.com/carhartl/jquery-cookie

Where you can use $.cookie('key..') to access your cookie.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜