阅读背景:

添加到可能存在或尚不存在的json属性。

来源:互联网 

let say I want to do this:

假设我想这样做:

  var dashboard = {};
  var page = "index";

  $('.check').click(function(){ 
    $(this).toggleClass("active").siblings().slideToggle('slow', function() {
        dashboard['pages'][page][$(this).closest('li').attr("id")]['show'] = $(this).is(":hidden") ? 'collapsed' : 'expanded';
    });
  }
  var d



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: