2017年4月25日
摘要: var dish = ['鱼香肉丝','北京烤鸭','麻婆豆腐','酸辣土豆丝','回锅肉','煎饼卷大葱'];var num = Math.floor(Math.random()*(y+1-x)+x); 此处案例就是 var num = Math.floor(Math.random()*(5+1- 阅读全文
posted @ 2017-04-25 09:57 酷克1990 阅读(199) 评论(0) 推荐(0)
  2016年3月16日
摘要: 选项卡就是点击按钮切换到相应内容,对应就是点击按钮把内容通过display来显示或者隐藏. oBtn[i].onclick=function() 四个按钮用的都是这一个函数,怎么确定当前点的那个按钮是谁 this:当前发生事件的元素 this.className=active 不光this要改变颜色 阅读全文
posted @ 2016-03-16 22:49 酷克1990 阅读(161) 评论(0) 推荐(0)