jQuery饼干不工作! [英] jQuery cookies not working !

查看:125
本文介绍了jQuery饼干不工作!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大问题,jQuery cookies不工作在所有浏览器..
和我使用最新的jQuery库版本1.4.4

I have a big problem, jQuery cookies not working in all browsers.. And I'm using latest jQuery library version 1.4.4

请帮助我

编辑

var mid = $.cookie('mid');
if (mid == '1') {
    $('#something').css('background', '#d3d3d3');
}


推荐答案

>

Some ideas:


  1. 尝试检查错误控制台是否有错误(在Firefox上, Ctrl + Shift + J F12 for firebug)。

  2. 确保
  1. Try checking the error console for errors (on Firefox, Ctrl+Shift+J, or F12 for firebug).
  2. Make sure you the cookie plugin is included in the page properly.

这篇关于jQuery饼干不工作!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆