摘要: (function ($) { var a = ['test1', 'test2', 'test3', 'test4']; recursive(3, 'test').done(function (result) { console.log(result); }); function get(id) { var dfd = $.Deferred(); setTimeout(function () { dfd.resolve(a[id]); }, 1000); return dfd.... 阅读全文
posted @ 2014-03-04 10:20 Kevin Liu Blog 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 利用d3js绘出环形百分比环 (function() { var numberData = [{ value : 0.334, text : "33.4%", color : "#fd12000", id : 1 }, { value : 0.666, text : "66.6%", ... 阅读全文
posted @ 2014-03-04 10:04 Kevin Liu Blog 阅读(2834) 评论(0) 推荐(0) 编辑