red931744496
2016-05-11 08:50
采纳率: 0%
浏览 3.0k

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); })();



报错,如何修改?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • 评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题