var formatTime = d3.timeFormat("%B %d, %Y"); formatTime(new Date); // "June 30, 2015". 同样的,将字符串解析为日期类型,需要创建一个parser:.
確定! 回上一頁