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.
精彩评论