js- 对象的连续调用


var jack = {

somke : function (){
  console.log('I was in the somkeing...cool..');
  return this;
},

drink : function(){
  console.log('I want cocaCola');
  return this;
},
perm : function (){
  console.log('I want perm ');
  return this;
}

}

  console.somke().drink().perm();

猜你喜欢

转载自www.cnblogs.com/jie-xuan/p/11310611.html
今日推荐