我正在使用jquery.treeview.js。 我需要在加载页面时突出显示节点背景颜色。 在点击我能够突出背景颜色和字体等使用jquery高亮页面加载jquerytreeview中的默认节点
$("a").css("backgroundColor", "");
$("a").css("font-weight", "");
$(this).css("backgroundColor", "grey");
$(this).css("font-weight", "bold");
$.cookie("url", $(this));
现在我坚持一个cookie该对象和我能够读取相同的,但不能因为说有应用CSS没有这样的财产。
$.cookie("url").css("backgroundColor", "grey");
为什么我没有从cookie中获取jQuery对象?
警报(this.id)返回空 警报($(本).ID)返回undefined – 2013-03-15 13:58:17