开发者

Load cookies data using jquery

开发者 https://www.devze.com 2023-01-28 03:27 出处:网络
I have a code like this: <script type=\"text/javascript\"> <!-- $(document).ready(function(){ var myPlayList = [];

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

精彩评论

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