摘要: var legend = new Chart(ctx).Bar(data, options).generateLegend() 阅读全文
posted @ 2016-02-22 17:03 好男孩123 阅读(129) 评论(0) 推荐(0)
摘要: 'use strict'; //对象的复制; function copy(obj) { //基于传入的对象,创建子对象 var a = Object.create(Object.getPrototypeOf(obj)); //得到要复制对象的属性名 var propNames = Object.ge 阅读全文
posted @ 2016-02-22 10:48 好男孩123 阅读(237) 评论(0) 推荐(0)
摘要: 使用css3 animation动画 'use strict'; var mousex, mousey; function tuo(el) { var move = function () { el.style.left = event.x - mousex + 'px'; el.style.top 阅读全文
posted @ 2016-02-20 16:52 好男孩123 阅读(132) 评论(0) 推荐(0)