jquery note

each 遍历cookie

$("button").click(function(){
  $("li").each(function(){
    alert($(this).text())
  });
});

cookie 设置ide

$.cookie('cookieName', 'cookieValue', { expires: 7, path: '/' });

添加,删除样式类this

$(this).parent().removeClass("left-off")
 $(this).parent().addClass("left-full");

显示,隐藏code

$(this).find("div").show();
 $(this).find("div").hide();
相关文章
相关标签/搜索