2 red931744496 red931744496 于 2016.05.11 16:50 提问

timeline.js如何生成时间轴?

<!DOCTYPE html>



Timeline
<!-- The default timeline stylesheet -->
<link rel="stylesheet" href="assets/css/timeline.css"/>
<!-- Our customizations to the theme -->
<link rel="stylesheet" href="assets/css/styles.css"/>



var obj = { "timeline": { "headline": "Events timeline", "type": "default", "startDate": "2015,4", "text": "<i><span class='c1'>事件</span> & <span class='c2'>时间轴</span></i>", "date": [ { "startDate": "2016,4,15", "headline": "违法违规|债务违约", "text": "<a href='http://business.sohu.com/20160415/n444244012.shtml' target='_blank'>交易商协会调查绿地控股信披违规 或与云峰违约有关</a>", "asset": { "media": "", "credit":"<a href='http://business.sohu.com/20160415/n444244012.shtml' target='_blank'>违规|违约</a>", "caption": "" } }, { "startDate": "2016,4,9", "headline": "违约", "text": "<a href='http://finance.qq.com/a/20160409/017663.htm' target='_blank'>云峰债违约内幕:信披夸大净资产超十倍</a>", "asset": { "media": "assets/img/shots/sidebar_s3.jpg", "credit": "", "caption": "" } } ] } }; //**************** (function () { var timeline = new VMM.Timeline(); timeline.init(obj); })();



报错,如何修改?

2个回答

showbo
showbo   Ds   Rxr 2016.05.11 17:24
CSDNXIAON
CSDNXIAON   2016.05.11 17:02

针对时间轴TimeLine的一些js操作
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!